---
name: "crypto_shash_descsize"
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_descsize"
---

# crypto\_shash\_descsize(9)

obtain the operational state size

## NAME

crypto\_shash\_descsize - obtain the operational state size

## SYNOPSIS

**unsigned int crypto\_shash\_descsize(struct crypto\_shash \*** *tfm***);**

## ARGUMENTS

*tfm*

cipher handle

## DESCRIPTION

The size of the operational state the cipher needs during operation is returned for the hash referenced with the cipher handle. This size is required to calculate the memory requirements to allow the caller allocating sufficient memory for operational state.

The operational state is defined with struct shash\_desc where the size of that data structure is to be calculated as sizeof(struct shash\_desc) + crypto\_shash\_descsize(alg)

## RETURN

size of the operational state

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
