On Tue, Nov 23, 2010 at 09:34:01AM -0500, Mimi Zohar wrote: > 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, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
