diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-11-02 08:38:11 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-12-24 19:01:30 -0500 |
commit | dec8b78606ebd5f309c38f2fb10196ce996dd18d (patch) | |
tree | 005ef526f1b0e953a3a57e6c991e0921fcd5234b /include/linux/crypto.h | |
parent | 3b2f6df08258e2875f42bd630eece7e7241a053b (diff) |
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: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r-- | include/linux/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 44c72f0f9b05..77a1f3d9416d 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -221,6 +221,7 @@ struct ablkcipher_alg { | |||
221 | 221 | ||
222 | struct ahash_alg { | 222 | struct ahash_alg { |
223 | int (*init)(struct ahash_request *req); | 223 | int (*init)(struct ahash_request *req); |
224 | int (*reinit)(struct ahash_request *req); | ||
224 | int (*update)(struct ahash_request *req); | 225 | int (*update)(struct ahash_request *req); |
225 | int (*final)(struct ahash_request *req); | 226 | int (*final)(struct ahash_request *req); |
226 | int (*digest)(struct ahash_request *req); | 227 | int (*digest)(struct ahash_request *req); |