All of lore.kernel.org
 help / color / mirror / Atom feed
* crypto_shash_digest API
@ 2010-11-23 14:34 Mimi Zohar
  2010-11-23 14:42 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Mimi Zohar @ 2010-11-23 14:34 UTC (permalink / raw)
  To: linux-crypto; +Cc: Herbert Xu

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: crypto_shash_digest API
  2010-11-23 14:34 crypto_shash_digest API Mimi Zohar
@ 2010-11-23 14:42 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2010-11-23 14:42 UTC (permalink / raw)
  To: Mimi Zohar; +Cc: linux-crypto

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 <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-23 14:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 14:34 crypto_shash_digest API Mimi Zohar
2010-11-23 14:42 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.