Re: Is it possible to set IV length in EVP_Cipher?
Hola! Dr. Stephen Henson wrote: On Tue, Mar 08, 2005, Antonio Ruiz Martnez wrote: Hello! I have been looking at how I can set the length of the iv parameters in a cipher algorithm. I saw that we can put the IV with EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, do_decrypt); However this length, in RC2_CBC, is 8 bytes I don't know if it is possible to use another different length. I think that it is possible because Mozilla uses it, but I'm not sure if a mistake of its implementation. I would like to use 12 bytes like mozilla. How could I set the iv length in Openssl for any algorithm? The obvious question is why? I'm not sure what you mean about Mozilla. Thanks for your answer. Mozilla is using a IV of 12 bytes length. I don't know why. That is the reason because I asked if it was possible to use another differente length in the IV. Regards, Antonio. For the cipher modes that use an IV the IV length is equal to the block length of the cipher. That's fixed by standards and there's no way to change it. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] -- -- Antonio Ruiz Martnez Faculty of Computer Science-University of Murcia 30071 Murcia - Spain e-mail: [EMAIL PROTECTED] or arm [at] dif [dot] um [dot] es --
Re: Is it possible to set IV length in EVP_Cipher?
On Fri, Mar 11, 2005, Antonio Ruiz Martínez wrote: Hola! Thanks for your answer. Mozilla is using a IV of 12 bytes length. I don't know why. That is the reason because I asked if it was possible to use another differente length in the IV. What makes you think Mozilla is using a 12 byte IV? It might not actually be an IV in the normal sense. If its a key derivation algorithm and the IV is in fact the seed then the size is variable. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
Is it possible to set IV length in EVP_Cipher?
Hello! I have been looking at how I can set the length of the iv parameters in a cipher algorithm. I saw that we can put the IV with EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, do_decrypt); However this length, in RC2_CBC, is 8 bytes I don't know if it is possible to use another different length. I think that it is possible because Mozilla uses it, but I'm not sure if a mistake of its implementation. I would like to use 12 bytes like mozilla. How could I set the iv length in Openssl for any algorithm? Could you help me, please? Regards, Antonio. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
Re: Is it possible to set IV length in EVP_Cipher?
On Tue, Mar 08, 2005, Antonio Ruiz Martínez wrote: Hello! I have been looking at how I can set the length of the iv parameters in a cipher algorithm. I saw that we can put the IV with EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, do_decrypt); However this length, in RC2_CBC, is 8 bytes I don't know if it is possible to use another different length. I think that it is possible because Mozilla uses it, but I'm not sure if a mistake of its implementation. I would like to use 12 bytes like mozilla. How could I set the iv length in Openssl for any algorithm? The obvious question is why? I'm not sure what you mean about Mozilla. For the cipher modes that use an IV the IV length is equal to the block length of the cipher. That's fixed by standards and there's no way to change it. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]