crypto_shash_descsize(9) - phpMan
CRYPTO_SHASH_DESCSIZ(9) Programming Interface CRYPTO_SHASH_DESCSIZ(9)
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 AT chronox.de>
Author.
Marek Vasut <marek AT denx.de>
Author.
COPYRIGHT
Kernel Hackers Manual 4.8. January 2017 CRYPTO_SHASH_DESCSIZ(9)
|