---
name: "crypto_ahash_digest"
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_digest"
---

# crypto\_ahash\_digest(9)

calculate message digest for a buffer

## NAME

crypto\_ahash\_digest - calculate message digest for a buffer

## SYNOPSIS

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

## ARGUMENTS

*req*

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

## DESCRIPTION

This function is a “short-hand” for the function calls of crypto\_ahash\_init, crypto\_ahash\_update and crypto\_ahash\_final. The parameters have the same meaning as discussed for those separate three functions.

## 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
