'\" t .\" Title: struct hash_alg_common .\" 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 HASH_ALG_COMM" "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_hash_alg_common \- define properties of message digest .SH "SYNOPSIS" .sp .nf struct hash_alg_common { unsigned int digestsize; unsigned int statesize; struct crypto_alg base; }; .fi .SH "MEMBERS" .PP digestsize .RS 4 Size of the result of the transformation\&. A buffer of this size must be available to the \fIfinal\fR and \fIfinup\fR calls, so they can store the resulting hash into it\&. For various predefined sizes, search include/crypto/ using git grep _DIGEST_SIZE include/crypto\&. .RE .PP statesize .RS 4 Size of the block for partial state of the transformation\&. A buffer of this size must be passed to the \fIexport\fR function as it will save the partial state of the transformation into it\&. On the other side, the \fIimport\fR function will load the state from a buffer of this size as well\&. .RE .PP base .RS 4 Start of data structure of cipher algorithm\&. The common data structure of crypto_alg contains information common to all ciphers\&. The hash_alg_common data structure now adds the hash\-specific information\&. .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