On Tue, Feb 19, 2013 at 03:57:00AM -0500, Nick wrote:

> I see EVP_EncodeUpdate adds a newline char after every 64 chars of
> output (presumably to wrap the output).  Can this be disabled?

No, but the EVP_EncodeBlock() function does not generate any newlines.
You must pass it a multiple of 3-bytes on every call except the last,
since it will otherwise generate trailing "=" padding for incomplete
blocks, which are not valid midstream.

Another option is to roll your own Base64 encoder, this is trivial
to implement, there is little incentive to use the EVP routines if
they don't do exactly what you want.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to