'\" t .\" Title: struct shash_alg .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Programming Interface .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT SHASH_ALG" "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" struct_shash_alg \- synchronous message digest definition .SH "SYNOPSIS" .sp .nf struct shash_alg { int (* init) (struct shash_desc *desc); int (* update) (struct shash_desc *desc, const u8 *data,unsigned int len); int (* final) (struct shash_desc *desc, u8 *out); int (* finup) (struct shash_desc *desc, const u8 *data,unsigned int len, u8 *out); int (* digest) (struct shash_desc *desc, const u8 *data,unsigned int len, u8 *out); int (* export) (struct shash_desc *desc, void *out); int (* import) (struct shash_desc *desc, const void *in); int (* setkey) (struct crypto_shash *tfm, const u8 *key,unsigned int keylen); unsigned int descsize; unsigned int digestsize; unsigned int statesize; struct crypto_alg base; }; .fi .SH "MEMBERS" .PP init .RS 4 see struct ahash_alg .RE .PP update .RS 4 see struct ahash_alg .RE .PP final .RS 4 see struct ahash_alg .RE .PP finup .RS 4 see struct ahash_alg .RE .PP digest .RS 4 see struct ahash_alg .RE .PP export .RS 4 see struct ahash_alg .RE .PP import .RS 4 see struct ahash_alg .RE .PP setkey .RS 4 see struct ahash_alg .RE .PP descsize .RS 4 Size of the operational state for the message digest\&. This state size is the memory size that needs to be allocated for shash_desc\&.__ctx .RE .PP digestsize .RS 4 see struct ahash_alg .RE .PP statesize .RS 4 see struct ahash_alg .RE .PP base .RS 4 internally used .RE .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