aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-13 11:28:40 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:54 -0500
commitce5bd4aca3c467936370846119b7f3daf9ccea78 (patch)
tree82f900a0f1d37ba8e057e4f274d032595e33451a /crypto
parent3631c650c495d61b1dabf32eb26b46873636e918 (diff)
[CRYPTO] null: Allow setkey on digest_null
We need to allow setkey on digest_null if it is to be used directly by authenc instead of through hmac. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto_null.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/crypto_null.c b/crypto/crypto_null.c
index fc2d2a4d7789..ff7b3de1bcfd 100644
--- a/crypto/crypto_null.c
+++ b/crypto/crypto_null.c
@@ -98,6 +98,7 @@ static struct crypto_alg digest_null = {
98 .cra_list = LIST_HEAD_INIT(digest_null.cra_list), 98 .cra_list = LIST_HEAD_INIT(digest_null.cra_list),
99 .cra_u = { .digest = { 99 .cra_u = { .digest = {
100 .dia_digestsize = NULL_DIGEST_SIZE, 100 .dia_digestsize = NULL_DIGEST_SIZE,
101 .dia_setkey = null_setkey,
101 .dia_init = null_init, 102 .dia_init = null_init,
102 .dia_update = null_update, 103 .dia_update = null_update,
103 .dia_final = null_final } } 104 .dia_final = null_final } }