---
name: "crypto_ahash_final"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/crypto_ahash_final"
---

# crypto\_ahash\_final(9)

calculate message digest

## NAME

crypto\_ahash\_final - calculate message digest

## SYNOPSIS

**int crypto\_ahash\_final(struct ahash\_request \*** *req***);**

## ARGUMENTS

*req*

reference to the ahash\_request handle that holds all information needed to perform the cipher operation

## DESCRIPTION

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 registered with the ahash\_request handle.

## RETURN

0 if the message digest creation was successful; \< 0 if an error occurred

## AUTHORS

**Stephan Mueller** \<smueller@chronox.de\>

Author.

**Marek Vasut** \<marek@denx.de\>

Author.

## COPYRIGHT
