Skip to contentSkip to conversation

crypto_shash_digest API

DISCUSSION Mimi Zohar 2 participants 2 messages Nov 23, 2010 Crypto API

lore
Share & tools
lore

Mimi Zohar

author
#0 lore raw

Hi!

Am having problems finding any shash API documentation. Could someone tell me if 'out' needs to be zeroed before calling crypto_shash_digest?

int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
unsigned int len, u8 *out)

thanks,

Mimi

maintainer
#1 lore raw
Quoted 7 lines · Mimi Zohar

Hi!

Am having problems finding any shash API documentation. Could someone tell me if 'out' needs to be zeroed before calling crypto_shash_digest?

int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
unsigned int len, u8 *out)

No, out will be filled with the crypto_shash_digestsize bytes if crypto_shash_digest returns zero.

Cheers,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt