diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-27 21:15:31 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 08:16:43 +1100 |
commit | de1b3165f464f6b77578136db41d8fd0f9bd6af9 (patch) | |
tree | a19603271cfd655e5a2c883cd2d25659466d3ffd /crypto | |
parent | fb065dfaf40813e3989affc942394442bc7f15b1 (diff) | |
download | linux-crypto-de1b3165f464f6b77578136db41d8fd0f9bd6af9.tar.gz linux-crypto-de1b3165f464f6b77578136db41d8fd0f9bd6af9.zip |
[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 1a5c45b9..074298f2 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c @@ -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; |