KCAPI_AEAD_CCM_NONCE(3) | Programming Interface | KCAPI_AEAD_CCM_NONCE(3) |
kcapi_aead_ccm_nonce_to_iv - convert CCM nonce into IV
int kcapi_aead_ccm_nonce_to_iv(const uint8_t * nonce, uint32_t noncelen, uint8_t ** iv, uint32_t * ivlen);
nonce
noncelen
iv
ivlen
This service function converts a CCM nonce value into an IV usable by the kernel crypto API.
Caller must free iv.
return 0 upon success; < 0 upon failure
Stephan Mueller <smueller@chronox.de>
February 2022 | libkcapi Manual 1.4.0 |