From: Herbert Xu Date: Thu, 13 Dec 2007 16:28:40 +0000 (+0800) Subject: [CRYPTO] null: Allow setkey on digest_null X-Git-Tag: v2.6.25-rc1~1242^2~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ce5bd4aca3c467936370846119b7f3daf9ccea78;p=linux-2.6-omap-h63xx.git [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 --- diff --git a/crypto/crypto_null.c b/crypto/crypto_null.c index fc2d2a4d778..ff7b3de1bcf 100644 --- a/crypto/crypto_null.c +++ b/crypto/crypto_null.c @@ -98,6 +98,7 @@ static struct crypto_alg digest_null = { .cra_list = LIST_HEAD_INIT(digest_null.cra_list), .cra_u = { .digest = { .dia_digestsize = NULL_DIGEST_SIZE, + .dia_setkey = null_setkey, .dia_init = null_init, .dia_update = null_update, .dia_final = null_final } }