Hello,
Something strange happens when I try to encrypt some data using the
'openssl enc' tool...
If I create a 8-byte file filled with NUL, and I try to encrypt it using
DES or DES-EDE in ECB mode, I get a result file containing 16 bytes... If
I try with a larger input file, say a 32 bytes file, I end with a 40 bytes
one, so always 1 block larger... (or course, if I start with a 7 bytes
file, I end with an 8 bytes file, that's normal).
Is the padding mandatory, or is it a bug?
--
Erwann ABALEA
System and Development Engineer - Certplus SA
[EMAIL PROTECTED]
- RSA PGP Key ID: 0x2D0EABD5 -
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]