'\" t .\" Title: kcapi_md_hmac_sha1 .\" Author: .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: April 2024 .\" Manual: Programming Interface .\" Source: libkcapi Manual 1.4.0 .\" Language: English .\" .TH "KCAPI_MD_HMAC_SHA1" "3" "April 2024" "libkcapi Manual 1\&.4\&.0" "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_md_hmac_sha1 \- HMAC SHA\-1 keyed message digest on one buffer .SH "SYNOPSIS" .HP \w'ssize_t\ kcapi_md_hmac_sha1('u .BI "ssize_t kcapi_md_hmac_sha1(const\ uint8_t\ *\ " "key" ", uint32_t\ " "keylen" ", const\ uint8_t\ *\ " "in" ", size_t\ " "inlen" ", uint8_t\ *\ " "out" ", size_t\ " "outlen" ");" .SH "ARGUMENTS" .PP \fIkey\fR .RS 4 [in] buffer with HMAC key .RE .PP \fIkeylen\fR .RS 4 [in] length of HMAC key buffer .RE .PP \fIin\fR .RS 4 [in] buffer with input data .RE .PP \fIinlen\fR .RS 4 [in] length of input buffer .RE .PP \fIout\fR .RS 4 [out] buffer for message digest .RE .PP \fIoutlen\fR .RS 4 [in] length of out .RE .SH "DESCRIPTION" .PP With this one\-shot convenience function, a keyed message digest of the given buffer is generated\&. The output buffer must be allocated by the caller and have at least the length of the message digest size for the chosen keyed message digest\&. .PP \fIreturn\fR size of message digest upon success; \-EIO \- data cannot be obtained; \-ENOMEM \- buffer is too small for the complete message digest, the buffer is filled with the truncated message digest .SH "AUTHOR" .PP \fBStephan Mueller\fR <\&smueller@chronox.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br