Encrypt plaintext in CCM using a ccm128_f acceleration callback.
Synopsis
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);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
ctx |
CCM context ready for encryption. |
inp |
Plaintext bytes of length |
out |
Ciphertext buffer of length |
len |
Number of bytes to encrypt. |
stream |
Streaming CCM block function for the underlying cipher. |
Created with MrDocs