'\" t .\" Title: crypto_alloc_shash .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Programming Interface .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "CRYPTO_ALLOC_SHASH" "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_alloc_shash \- allocate message digest handle .SH "SYNOPSIS" .HP \w'struct\ crypto_shash\ *\ crypto_alloc_shash('u .BI "struct crypto_shash * crypto_alloc_shash(const\ char\ *\ " "alg_name" ", u32\ " "type" ", u32\ " "mask" ");" .SH "ARGUMENTS" .PP \fIalg_name\fR .RS 4 is the cra_name / name or cra_driver_name / driver name of the message digest cipher .RE .PP \fItype\fR .RS 4 specifies the type of the cipher .RE .PP \fImask\fR .RS 4 specifies the mask for the cipher .RE .SH "DESCRIPTION" .PP Allocate a cipher handle for a message digest\&. The returned struct crypto_shash is the cipher handle that is required for any subsequent API invocation for that message digest\&. .SH "RETURN" .PP allocated cipher handle in case of success; \fBIS_ERR\fR is true in case of an error, \fBPTR_ERR\fR returns the error code\&. .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