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

Name

Description

t

Destination buffer (at least ((n+2)/3)*4 + 1 bytes).

f

Input octets to encode.

n

Number of input bytes.

Created with MrDocs