Re: 3DES and how to change mode and set IV.

Fernando Perez <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Organization PalmaTools.com
Message-ID <[email protected]>
I did found the explanation to CRYPT_ERROR_PARAM3 on the cryptlib 
manual/help.  Thanks for the explanation Wolfgang.  

I know I could use envelope functions but I need "complete" control over 
the process, padding, IV and crypt-mode (ecb, cbc and so on)...  It is a 
bit difficult to explain and I cannot do it on a mailing list.  I will 
send you a private mail.

Thanks again...


GMX escribió:
> 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.
>
>   

_______________________________________________
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.