1KCAPI_AEAD_CCM_NONCE(3)      Programming Interface     KCAPI_AEAD_CCM_NONCE(3)
2
3
4

NAME

6       kcapi_aead_ccm_nonce_to_iv - convert CCM nonce into IV
7

SYNOPSIS

9       int kcapi_aead_ccm_nonce_to_iv(const uint8_t * nonce,
10                                      uint32_t noncelen, uint8_t ** iv,
11                                      uint32_t * ivlen);
12

ARGUMENTS

14       nonce
15           [in] buffer with nonce
16
17       noncelen
18           [in] length of nonce
19
20       iv
21           [out] newly allocated buffer with IV
22
23       ivlen
24           [out] length of IV
25

DESCRIPTION

27       This service function converts a CCM nonce value into an IV usable by
28       the kernel crypto API.
29
30       Caller must free iv.
31
32       return 0 upon success; < 0 upon failure
33

AUTHOR

35       Stephan Mueller <smueller@chronox.de>
36           Author.
37
39libkcapi Manual 1.1.5            January 2020          KCAPI_AEAD_CCM_NONCE(3)
Impressum