CRYPTO_ocb128_decrypt

Decrypt ciphertext and update the OCB authentication state.

Synopsis

Declared in <openssl/modes.h>

int
CRYPTO_ocb128_decrypt(
    OCB128_CONTEXT* ctx,
    unsigned char const* in,
    unsigned char* out,
    size_t len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxOCB context ready for decryption.
inCiphertext bytes of length len.
outPlaintext buffer of length len (may equal in).
lenNumber of bytes to decrypt.