Encrypt plaintext and update the CCM authentication state.

Synopsis

Declared in <openssl/modes.h>

int
CRYPTO_ccm128_encrypt(
    CCM128_CONTEXT* ctx,
    unsigned char const* inp,
    unsigned char* out,
    size_t len);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

CCM context ready for encryption (nonce and optional AAD set).

inp

Plaintext bytes of length len.

out

Ciphertext buffer of length len.

len

Number of bytes to encrypt.

Created with MrDocs