RE: AES_cbc_encrypt and Perl Crypt::CBC Incompatibility

2008-12-13 Thread Dave Stoddard
Sorry for the length of this post -- if you do not write software, you can probably hit the delete key now. I would like to express my thanks for all those that provided input regarding my compatibility issue between AES_cbc_encrypt() and the Perl Crypt::CBC / Crypt::OpenSSL::AES implementation. B

RE: AES_cbc_encrypt and Perl Crypt::CBC Incompatibility

2008-12-11 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Ger Hobbelt > Sent: Wednesday, 10 December, 2008 18:53 > few nitpicks on the code: > > > int > > bin2hex (unsigned char *pcIbuf, unsigned char *pszObuf, > unsigned int ilen) > > { > > unsigned int i; // loop iteration co

Re: AES_cbc_encrypt and Perl Crypt::CBC Incompatibility

2008-12-10 Thread Ger Hobbelt
few nitpicks on the code: > int > bin2hex (unsigned char *pcIbuf, unsigned char *pszObuf, unsigned int ilen) > { > unsigned int i; // loop iteration counter > unsigned int j = (ilen * 2) + 1; // output buffer length > unsigned char *p; > > p = pszObuf; // po

Re: AES_cbc_encrypt and Perl Crypt::CBC Incompatibility

2008-12-10 Thread Ger Hobbelt
Quick glance didn't show glaring errors. Though the perl stuff makes me wonder if it's interfacing with OpenSSL at EVP_*() level, which /might/ make a difference here as your C code uses bare metal AES crypto calls -- haven't checked this, just a wild guess. Next is probably a stupid remark you al