kcapi_aead_ccm_nonce_to_iv(3)

kcapi_aead_ccm_nonce_to_iv3

Convert ccm nonce into iv

Usage

int kcapi_aead_ccm_nonce_to_iv(const uint8_t * nonce, uint32_t noncelen, uint8_t ** iv, uint32_t * ivlen);

Arguments

nonce

[in] buffer with nonce

noncelen

[in] length of nonce

iv

[out] newly allocated buffer with IV

ivlen

[out] length of IV

Overview

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

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Stephan Mueller <[email protected]>

Author.

From libkcapi-dev 1.4.0-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.