Hi,
I'd like to use function des_encrypt1 and I have the following code:
const_DES_cblock key= {0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11};
DES_key_schedule k;
DES_set_key_unchecked(&key,&k);
DES_LONG dataenc1[2];
dataenc1[0] = 0x01234567;
dataenc1[1] = 0x89abcdef;
DES_encrypt1(dataenc1,&k,1);
but it doesn't work... instead of 8a5ae1f81ab8f2dd I receive eb0b38b6de16165
DES_ecb_encrypt works fine with that data (8a5ae1f81ab8f2dd is valid test
vector for key/plain set above)
Any idea how to use that function?
Thank you for your help in advance,
Koza
EDIT: Sorry if you receive this email twice, it's my first post on openssl
forum/list
--
View this message in context:
http://www.nabble.com/usage-of-DES_encrypt1-in-0.9.7j-tf4246728.html#a12085505
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]