CRYPTO_ccm128_decrypt_ccm64

Decrypt ciphertext in CCM using a ccm128_f acceleration callback.

Synopsis

Declared in <openssl/modes.h>

int
CRYPTO_ccm128_decrypt_ccm64(
    CCM128_CONTEXT* ctx,
    unsigned char const* inp,
    unsigned char* out,
    size_t len,
    ccm128_f stream);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxCCM context ready for decryption.
inpCiphertext bytes of length len.
outPlaintext buffer of length len.
lenNumber of bytes to decrypt.
streamStreaming CCM block function for the underlying cipher.