'\" t .\" Title: crypto_shash_digest .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Programming Interface .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "CRYPTO_SHASH_DIGEST" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" crypto_shash_digest \- calculate message digest for buffer .SH "SYNOPSIS" .HP \w'int\ crypto_shash_digest('u .BI "int crypto_shash_digest(struct\ shash_desc\ *\ " "desc" ", const\ u8\ *\ " "data" ", unsigned\ int\ " "len" ", u8\ *\ " "out" ");" .SH "ARGUMENTS" .PP \fIdesc\fR .RS 4 see \fBcrypto_shash_final\fR .RE .PP \fIdata\fR .RS 4 see \fBcrypto_shash_update\fR .RE .PP \fIlen\fR .RS 4 see \fBcrypto_shash_update\fR .RE .PP \fIout\fR .RS 4 see \fBcrypto_shash_final\fR .RE .SH "DESCRIPTION" .PP This function is a \(lqshort\-hand\(rq for the function calls of crypto_shash_init, crypto_shash_update and crypto_shash_final\&. The parameters have the same meaning as discussed for those separate three functions\&. .SH "RETURN" .PP 0 if the message digest creation was successful; < 0 if an error occurred .SH "AUTHORS" .PP \fBStephan Mueller\fR <\&smueller@chronox.de\&> .RS 4 Author. .RE .PP \fBMarek Vasut\fR <\&marek@denx.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br