Re: Blowfish implementation with OpenSSL

2011-04-30 Thread Jeffrey Walton
>     char mykey[EVP_MAX_KEY_LENGTH] = "blowfish_key"; >     char iv[EVP_MAX_IV_LENGTH] = "blowfish"; These look problematic. Is it the case that EVP_MAX_KEY_LENGTH == sizeof('blowfish_key')? Is it the case that EVP_MAX_IV_LENGTH == sizeof('blowfish')? >     EVP_EncryptInit(&ctx, EVP_bf_cfb(), (u

Blowfish implementation with OpenSSL

2011-04-29 Thread derleader mail
Hi, I'm working on implementation of OpenSSL and Blowfish. Can you help me to improve the code, Is there a problem in the code? C code: //cl test_AES.c /IC:\openssl\include /linkC:\openssl\lib\libeay32.lib //gcc test_AES.c -L/usr/local/ssl/lib/ -lssl -lcrypto -Wall #include #includ