Skip to content
Snippets Groups Projects
Commit dec8b786 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: hash - Add import/export interface


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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 3b2f6df0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment