diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-27 08:15:31 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:43 -0500 |
commit | 927eead52c958829ef62c8aa5da2751033a2cf98 (patch) | |
tree | 9ff2fec245f1357677902125172c30bc5b4290fc /crypto | |
parent | 23508e11ab3bb405dca66bf4d77e488bf2b07b0c (diff) |
[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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/cryptd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c index 1a5c45b96852..074298f2f8e3 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c | |||
@@ -243,6 +243,8 @@ static struct crypto_instance *cryptd_alloc_blkcipher( | |||
243 | inst->alg.cra_ablkcipher.min_keysize = alg->cra_blkcipher.min_keysize; | 243 | inst->alg.cra_ablkcipher.min_keysize = alg->cra_blkcipher.min_keysize; |
244 | inst->alg.cra_ablkcipher.max_keysize = alg->cra_blkcipher.max_keysize; | 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 | inst->alg.cra_ctxsize = sizeof(struct cryptd_blkcipher_ctx); | 248 | inst->alg.cra_ctxsize = sizeof(struct cryptd_blkcipher_ctx); |
247 | 249 | ||
248 | inst->alg.cra_init = cryptd_blkcipher_init_tfm; | 250 | inst->alg.cra_init = cryptd_blkcipher_init_tfm; |