'\" t .\" Title: kcapi_aead_ccm_nonce_to_iv .\" Author: .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: November 2020 .\" Manual: Programming Interface .\" Source: libkcapi Manual 1.2.1 .\" Language: English .\" .TH "KCAPI_AEAD_CCM_NONCE" "3" "November 2020" "libkcapi Manual 1\&.2\&.1" "Programming Interface" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" kcapi_aead_ccm_nonce_to_iv \- convert CCM nonce into IV .SH "SYNOPSIS" .HP \w'int\ kcapi_aead_ccm_nonce_to_iv('u .BI "int kcapi_aead_ccm_nonce_to_iv(const\ uint8_t\ *\ " "nonce" ", uint32_t\ " "noncelen" ", uint8_t\ **\ " "iv" ", uint32_t\ *\ " "ivlen" ");" .SH "ARGUMENTS" .PP \fInonce\fR .RS 4 [in] buffer with nonce .RE .PP \fInoncelen\fR .RS 4 [in] length of nonce .RE .PP \fIiv\fR .RS 4 [out] newly allocated buffer with IV .RE .PP \fIivlen\fR .RS 4 [out] length of IV .RE .SH "DESCRIPTION" .PP This service function converts a CCM nonce value into an IV usable by the kernel crypto API\&. .PP Caller must free iv\&. .PP \fIreturn\fR 0 upon success; < 0 upon failure .SH "AUTHOR" .PP \fBStephan Mueller\fR <\&smueller@chronox.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br