OSSL_DECODER_from_data

Run decoding from a memory buffer, advancing *pdata past consumed bytes.

Synopsis

Declared in <openssl/decoder.h>

int
OSSL_DECODER_from_data(
    OSSL_DECODER_CTX* ctx,
    unsigned char const** pdata,
    size_t* pdata_len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxConfigured decoder context.
pdataAddress of a pointer to the input bytes; updated past what was decoded.
pdata_lenAddress of the remaining length; updated with bytes left undecoded.