'\" t
.\"     Title: crypto_shash_final
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: June 2017
.\"    Manual: Programming Interface
.\"    Source: Kernel Hackers Manual 4.9.30
.\"  Language: English
.\"
.TH "CRYPTO_SHASH_FINAL" "9" "June 2017" "Kernel Hackers Manual 4\&.9\&." "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_final \- calculate message digest
.SH "SYNOPSIS"
.HP \w'int\ crypto_shash_final('u
.BI "int crypto_shash_final(struct\ shash_desc\ *\ " "desc" ", u8\ *\ " "out" ");"
.SH "ARGUMENTS"
.PP
\fIdesc\fR
.RS 4
operational state handle that is already filled with data
.RE
.PP
\fIout\fR
.RS 4
output buffer filled with the message digest
.RE
.SH "DESCRIPTION"
.PP
Finalize the message digest operation and create the message digest based on all data added to the cipher handle\&. The message digest is placed into the output buffer\&. The caller must ensure that the output buffer is large enough by using crypto_shash_digestsize\&.
.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
