diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-22 12:37:06 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-22 14:38:13 +0800 |
commit | 8af5fce4011f4c997cc38372bc91add21eb5e2fc (patch) | |
tree | db06470515d31e483791631b4fcb9c4cd513dd34 /crypto/hash.c | |
parent | 4ebb2072700912b02e926fb57758da0518c3031c (diff) | |
download | linux-crypto-8af5fce4011f4c997cc38372bc91add21eb5e2fc.tar.gz linux-crypto-8af5fce4011f4c997cc38372bc91add21eb5e2fc.zip |
crypto: shash - Require all algorithms to support export/import
This patch provides a default export/import function for all
shash algorithms. It simply copies the descriptor context as
is done by sha1_generic.
This in essence means that all existing shash algorithms now
support export/import. This is something that will be depended
upon in implementations such as hmac. Therefore all new shash
and ahash implementations must support export/import.
For those that cannot obtain a partial result, padlock-sha's
fallback model should be used so that a partial result is always
available.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/hash.c')
0 files changed, 0 insertions, 0 deletions