Decrypt ciphertext and update the CCM authentication state.
Declared in <openssl/modes.h>
int
CRYPTO_ccm128_decrypt(
CCM128_CONTEXT* ctx,
unsigned char const* inp,
unsigned char* out,
size_t len);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | CCM context ready for decryption (nonce and optional AAD set). |
| inp | Ciphertext bytes of length len. |
| out | Plaintext buffer of length len. |
| len | Number of bytes to decrypt. |