Hi, Yes I have replaced them all with strlen.
I got the error in key generation at the checking whether key has generated or not --> if ((k = DES_set_key_checked((C_Block*)&cbc_key,&key)) != 0) printf("\nkey error\n%d\n",k); Every time it prints " key error : -1 " as output. Please respond ASAP. Thanks!! Vineet -- View this message in context: http://openssl.6102.n7.nabble.com/Generation-of-DES-key-for-use-in-DES-encrypt1-tp52999p53038.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org