RE: help with bad decrypt error

2009-04-10 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Ger Hobbelt > Sent: Wednesday, 08 April, 2009 19:06 > On Tue, Apr 7, 2009 at 8:17 PM, Charles wrote: > > Doh!  Thanks guys.  I try and use std::strings where > possible to keep > > me out of trouble.  Stupid.  So I should be padding my key?

Re: help with bad decrypt error

2009-04-08 Thread Dr. Stephen Henson
On Thu, Apr 09, 2009, Ger Hobbelt wrote: > > Which brings us to Blowfish: > > when you compare BF with, say, DES or AES, the latter all have fixed > width key sizes - by design -, e.g. 64 bits (8 bytes) or 128 bits (16 > bytes). Sure, there's AES-256, but that is a _different cipher_ (okay, > no

Re: help with bad decrypt error

2009-04-08 Thread Ger Hobbelt
On Tue, Apr 7, 2009 at 8:17 PM, Charles wrote: > Doh!  Thanks guys.  I try and use std::strings where possible to keep > me out of trouble.  Stupid.  So I should be padding my key?  I guess > this threw me off: Trouble with string<> is (and with anything that thinks 'string' instead of 'binary bl

Re: help with bad decrypt error

2009-04-07 Thread Charles
On Sun, Apr 5, 2009 at 5:41 PM, Ger Hobbelt wrote: > On Sun, Apr 5, 2009 at 6:19 PM, Dr. Stephen Henson wrote: >> Well it looks like one problem is the key. The default key size is 128 bits >> for EVP_bf_cbc() and "Test Key" is 64 bits or 72 bits if you include the >> final > > (In fact, you're

Re: help with bad decrypt error

2009-04-05 Thread Ger Hobbelt
On Sun, Apr 5, 2009 at 6:19 PM, Dr. Stephen Henson wrote: > Well it looks like one problem is the key. The default key size is 128 bits > for EVP_bf_cbc() and "Test Key" is 64 bits or 72 bits if you include the final shoot. that's it. forget my 'cannot reproduce, search elsewhere' garbage from

Re: help with bad decrypt error

2009-04-05 Thread Dr. Stephen Henson
On Fri, Mar 27, 2009, Charles wrote: > I have a function that writes encryption of msg to filename using key > and iv. I have another function that reads filename and decrypts msg > using key and iv. > > If I run my encrypt function to create the encrypted file, and then > try and decrypt later

Re: help with bad decrypt error?

2009-04-05 Thread Ger Hobbelt
m/ http://www.hebbut.net/ mail: g...@hobbelt.com mobile: +31-6-11 120 978 -- /* * help with bad decrypt error? * * Charles * to openssl-users * * show details Apr 2 (3 days ago) * * * * * I posted this before but still haven't solved it: * * I have a function

help with bad decrypt error?

2009-04-03 Thread Charles
I posted this before but still haven't solved it: I have a function that writes encryption of msg to filename using key and iv. I have another function that reads filename and decrypts msg using key and iv. (Source below) If I run my encrypt function to create the encrypted file, and then try a

help with bad decrypt error

2009-03-29 Thread Charles
I have a function that writes encryption of msg to filename using key and iv. I have another function that reads filename and decrypts msg using key and iv. (Source below) If I run my encrypt function to create the encrypted file, and then try and decrypt later with my decrypt function, I get th

help with bad decrypt error

2009-03-29 Thread Charles
I have a function that writes encryption of msg to filename using key and iv. I have another function that reads filename and decrypts msg using key and iv. If I run my encrypt function to create the encrypted file, and then try and decrypt later with my decrypt function, I get this: error:06065