amann> input should come out of blowfish as 16 bytes<CONTENT EDITED>
<CONTENT EDITED>base64 comes in groups of 4 characters for each group of 3 or less input bytes.
Well, at the moment, I think my boss found the problem. My code predicted the number of bytes to be returned from the encrypt/decrypt/encode/decode functions, but it turns out that the actual encode functions can do it themselves:
I originally used: int ToBase64(unsigned char * out, unsigned char * in, int b2_length) { int b64_length = 0; b64_length = (((b2_length + 2) / 3) * 4) + 1; EVP_EncodeBlock(out, in, b2_length); out[b64_length -1] = '\0'; return b64_length; }
but this: int ToBase64(unsigned char * out, unsigned char * in, int b2_length) { EVP_EncodeBlock(out, in, b2_length); }
works correctly (at least in the test environment)
Still, the issues you guys raised with buffer bytes will probably crop up in the future, but I was just introduced to calloc recently which
might help with that issue. So, thank you guys again for all your help!
GOD BLESS! ---MIKE<G>
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]