logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_aead_ccm_nonce_to_iv - convert CCM nonce into IV

Arguments

nonce
           [in] buffer with nonce

       noncelen
           [in] length of nonce

       iv
           [out] newly allocated buffer with IV

       ivlen
           [out] length of IV

Author

StephanMueller <smueller@chronox.de>
           Author.

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);

See Also