kcapi_aead_ccm_nonce_to_iv - convert CCM nonce into IV
Contents
Arguments
nonce
[in] buffer with nonce
noncelen
[in] length of nonce
iv
[out] newly allocated buffer with IV
ivlen
[out] length of IV
Copyright
libkcapi Manual 1.5.0 April 2024 KCAPI_AEAD_CCM_NONCE(3)
Description
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
Name
kcapi_aead_ccm_nonce_to_iv - convert CCM nonce into IV
Synopsis
intkcapi_aead_ccm_nonce_to_iv(constuint8_t*nonce,uint32_tnoncelen,uint8_t**iv,uint32_t*ivlen);
