Re: Blowfish and key length

2012-07-27 Thread Cristiano Toninato
Il 26/07/2012 23.11, Dr. Stephen Henson ha scritto: On Thu, Jul 26, 2012, Cristiano Toninato wrote: This simple test program should print always the same result, but with openSSL 0.9.8o and gcc 4.5.2 output is From http://www.schneier.com/code/vectors.txt, cipher bytes should be 51866FD5B85EC

Re: Blowfish and key length

2012-07-26 Thread Dr. Stephen Henson
On Thu, Jul 26, 2012, Cristiano Toninato wrote: > This simple test program should print always the same result, but > with openSSL 0.9.8o and gcc 4.5.2 output is > > From http://www.schneier.com/code/vectors.txt, cipher bytes should > be 51866FD5B85ECB8A > Test BF_ecb_encrypt(): 51866FD5B85ECB8A

Blowfish and key length

2012-07-26 Thread Cristiano Toninato
Hi all, I am a C++ developer, and I need an implementation of blowfish encoding under linux. Everything seems working well if using BF_ functions, but I found some problems with EVP_bf interface, using key shorter than 128 bits. This code exemplify the problem. #include #include #include #in