On Thu, Jul 25, 2002, Aleix Conchillo wrote: > On Thu, 25 Jul 2002 02:27:06 +0200, Dr. Stephen Henson wrote: > > with PKCS5_pbe i get the original data perfectly but with PKCS5_pbe2 i > just get decrypted well the second 8 byte block. so i just get right the > last 6 bytes of my 14 orginal. > > any ideas? do i initialize something wrong? >
With PKCS#5 v1.5 the ciphers IV is derived from the password and salt. With PKCS#5 v2.0 the IV must be generated and distributed separately. Steve. -- Dr. Stephen Henson [EMAIL PROTECTED] OpenSSL Project http://www.openssl.org/~steve/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]