crypto_shash_descsize - obtain the operational state size
unsigned int crypto_shash_descsize(struct crypto_shash * tfm);
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)
size of the operational state
Stephan Mueller <firstname.lastname@example.org>
Marek Vasut <email@example.com>
|January 2017||Kernel Hackers Manual 4.8.|