summaryrefslogtreecommitdiffstats
path: root/crypto/ahash.c
diff options
context:
space:
mode:
authorHerbert Xu2009-07-22 06:37:06 +0200
committerHerbert Xu2009-07-22 08:38:13 +0200
commitf592682f9fca18d336ac068a1abc8507b4a1d936 (patch)
tree4f50efe420d0ecf523adff5301aaff014c357070 /crypto/ahash.c
parentcrypto: sha512-s390 - Add export/import support (diff)
downloadkernel-qcow2-linux-f592682f9fca18d336ac068a1abc8507b4a1d936.tar.gz
kernel-qcow2-linux-f592682f9fca18d336ac068a1abc8507b4a1d936.tar.xz
kernel-qcow2-linux-f592682f9fca18d336ac068a1abc8507b4a1d936.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/ahash.c')
0 files changed, 0 insertions, 0 deletions