Encrypt plaintext in CCM using a ccm128_f acceleration callback.
Declared in <openssl/modes.h>
int
CRYPTO_ccm128_encrypt_ccm64(
CCM128_CONTEXT* ctx,
unsigned char const* inp,
unsigned char* out,
size_t len,
ccm128_f stream);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | CCM context ready for encryption. |
| inp | Plaintext bytes of length len. |
| out | Ciphertext buffer of length len. |
| len | Number of bytes to encrypt. |
| stream | Streaming CCM block function for the underlying cipher. |