Skip to content

Commit

Permalink
[CRYPTO] cryptd: Use geniv of the underlying algorithm
Browse files Browse the repository at this point in the history
If the underlying algorithm specifies a specific geniv algorithm then
we should use it for the cryptd version as well.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
herbertx committed Jan 10, 2008
1 parent 23508e1 commit 927eead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/cryptd.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ static struct crypto_instance *cryptd_alloc_blkcipher(
inst->alg.cra_ablkcipher.min_keysize = alg->cra_blkcipher.min_keysize;
inst->alg.cra_ablkcipher.max_keysize = alg->cra_blkcipher.max_keysize;

inst->alg.cra_ablkcipher.geniv = alg->cra_blkcipher.geniv;

inst->alg.cra_ctxsize = sizeof(struct cryptd_blkcipher_ctx);

inst->alg.cra_init = cryptd_blkcipher_init_tfm;
Expand Down

0 comments on commit 927eead

Please sign in to comment.