Skip to content

Commit

Permalink
[CRYPTO] null: Allow setkey on digest_null
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
herbertx committed Jan 10, 2008
1 parent 3631c65 commit ce5bd4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/crypto_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }
Expand Down

0 comments on commit ce5bd4a

Please sign in to comment.