---
name: "crypto_ahash_import"
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_import"
---

# crypto\_ahash\_import(9)

import message digest state

## NAME

crypto\_ahash\_import - import message digest state

## SYNOPSIS

**int crypto\_ahash\_import(struct ahash\_request \*** *req***, const void \*** *in***);**

## ARGUMENTS

*req*

reference to ahash\_request handle the state is imported into

*in*

buffer holding the state

## DESCRIPTION

This function imports the hash state into the ahash\_request handle from the input buffer. That buffer should have been generated with the crypto\_ahash\_export function.

## RETURN

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

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
