EVP_DecodeBlock

Base64-decode n characters from f into t as a single block.

Synopsis

Declared in <openssl/evp.h>

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

Return Value

Number of decoded bytes written, or -1 on error.

Parameters

NameDescription
tDestination buffer for decoded octets.
fBase64 input characters (whitespace should already be removed for legacy behaviour).
nNumber of input characters; should be a multiple of four.