---
name: "crypto_ahash_export"
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_export"
---

# crypto\_ahash\_export(9)

extract current message digest state

## NAME

crypto\_ahash\_export - extract current message digest state

## SYNOPSIS

**int crypto\_ahash\_export(struct ahash\_request \*** *req***, void \*** *out***);**

## ARGUMENTS

*req*

reference to the ahash\_request handle whose state is exported

*out*

output buffer of sufficient size that can hold the hash state

## DESCRIPTION

This function exports the hash state of the ahash\_request handle into the caller-allocated output buffer out which must have sufficient size (e.g. by calling crypto\_ahash\_reqsize).

## RETURN

0 if the export was successful; \< 0 if an error occurred

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
