---
name: "crypto_shash_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_shash_import"
---

# crypto\_shash\_import(9)

import operational state

## NAME

crypto\_shash\_import - import operational state

## SYNOPSIS

**int crypto\_shash\_import(struct shash\_desc \*** *desc***, const void \*** *in***);**

## ARGUMENTS

*desc*

reference to the operational state handle the state imported into

*in*

buffer holding the state

## DESCRIPTION

This function imports the hash state into the operational state 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
