crypto: hash - Add import/export interface
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 2 Nov 2008 13:38:11 +0000 (21:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:01:30 +0000 (11:01 +1100)
It is often useful to save the partial state of a hash function
so that it can be used as a base for two or more computations.

The most prominent example is HMAC where all hashes start from
a base determined by the key.  Having an import/export interface
means that we only have to compute that base once rather than
for each message.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found