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
> 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
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
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