Commit 927eead52c958829ef62c8aa5da2751033a2cf98

Authored by Herbert Xu
1 parent 23508e11ab

[CRYPTO] cryptd: Use geniv of the underlying algorithm

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -243,6 +243,8 @@
243 243 inst->alg.cra_ablkcipher.min_keysize = alg->cra_blkcipher.min_keysize;
244 244 inst->alg.cra_ablkcipher.max_keysize = alg->cra_blkcipher.max_keysize;
245 245  
  246 + inst->alg.cra_ablkcipher.geniv = alg->cra_blkcipher.geniv;
  247 +
246 248 inst->alg.cra_ctxsize = sizeof(struct cryptd_blkcipher_ctx);
247 249  
248 250 inst->alg.cra_init = cryptd_blkcipher_init_tfm;