diff options
Diffstat (limited to 'crypto/cryptd.c')
-rw-r--r-- | crypto/cryptd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c index 8bf2da835f7b..074298f2f8e3 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c | |||
@@ -228,7 +228,7 @@ static struct crypto_instance *cryptd_alloc_blkcipher( | |||
228 | struct crypto_alg *alg; | 228 | struct crypto_alg *alg; |
229 | 229 | ||
230 | alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_BLKCIPHER, | 230 | alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_BLKCIPHER, |
231 | CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_ASYNC); | 231 | CRYPTO_ALG_TYPE_MASK); |
232 | if (IS_ERR(alg)) | 232 | if (IS_ERR(alg)) |
233 | return ERR_PTR(PTR_ERR(alg)); | 233 | return ERR_PTR(PTR_ERR(alg)); |
234 | 234 | ||
@@ -236,13 +236,15 @@ static struct crypto_instance *cryptd_alloc_blkcipher( | |||
236 | if (IS_ERR(inst)) | 236 | if (IS_ERR(inst)) |
237 | goto out_put_alg; | 237 | goto out_put_alg; |
238 | 238 | ||
239 | inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER | CRYPTO_ALG_ASYNC; | 239 | inst->alg.cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC; |
240 | inst->alg.cra_type = &crypto_ablkcipher_type; | 240 | inst->alg.cra_type = &crypto_ablkcipher_type; |
241 | 241 | ||
242 | inst->alg.cra_ablkcipher.ivsize = alg->cra_blkcipher.ivsize; | 242 | inst->alg.cra_ablkcipher.ivsize = alg->cra_blkcipher.ivsize; |
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; |