Re: 3DES and how to change mode and set IV.
GMX <[email protected]>
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
No, that is definitely not the reason for CRYPT_ERROR_PARAM3. The paramter counting is a bit tricky when using DelphiCryptlib.pas: There is a first "hidden" parameter, the cryptContext handle! Thats why the SECOND Delphi parameter (data.size) is in error. I think, you forgot the padding bytes at the end in case the file length is not a multiple of the blocksize. I can't understand why you try to reinvent the wheel. Why don't you use the high level envelope functions? They handle all these special cases like IV and blocksize and maximal buffer length. Wolfgang Gothier -------- Original Message -------- Subject: Re: [Cryptlib] 3DES and how to change mode and set IV. From: Fernando Perez <[email protected]> To: GMX <[email protected]> Date: Thu Sep 03 2009 23:57:47 GMT+0200 > I have found what is parameter 3 error: > > "Loading a key will return a CRYPT_ERROR_PARAM3 error if the key is a weak > key. cryptExportKey will export the correct parity-adjusted version of > the key." > > Hummm.... My test password is (text plain): > 12345678abcdefgh87654321 > > I think this is not a weak key... > > Thanks in advance... _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.