I added the DES CBC test vectors in destest.c to test/evptests.txt thus:
# DES CBC tests (from destest)
DES-CBC:0123456789abcdef:fedcba9876543210:37363534333231204E6F77206973207468
652074696D6520666F722000310000:ccd173ffab2039f4acd8aefddfd8a1eb468e91157888b
a681d269397f7fe62b4
which corresponds to the C code format, except I changed the cbc_data string
length to 32 instead of 40. Since destest actually passes 32 and cbc_ok is
32 in length, this should be fine. When I run "make test_evp", it fails
with exit(9) on this entry ("Ciphertext mismatch", the last 8 bytes of
ciphertext are wrong). If I change the size to 24, it works fine. Yet 32
appears to work fine in destest. What am I missing? I thought any multiple
of 8 bytes should work OK.
Oh, I see that destest actually passes 40 bytes (32 + 8 zero's) for
encryption and then checks 32 bytes of ciphertext. Is this a padding thing?
Chris Brook
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]