EVP_EncodeBlock

Base64-encode n bytes from f into t as a single block (with NUL terminator).

Synopsis

Declared in <openssl/evp.h>

int
EVP_EncodeBlock(
    unsigned char* t,
    unsigned char const* f,
    int n);

Return Value

Number of Base64 characters written, not counting the trailing NUL.

Parameters

NameDescription
tDestination buffer (at least ((n+2)/3)*4 + 1 bytes).
fInput octets to encode.
nNumber of input bytes.