mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
crypto: chcr - Change cra_flags for cipher algos
Change cipher algos flags to CRYPTO_ALG_TYPE_ABLKCIPHER. Signed-off-by: Harsh Jain <harsh@chelsio.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
8356ea515b
commit
44e9f79916
@ -171,7 +171,7 @@ int chcr_handle_resp(struct crypto_async_request *req, unsigned char *input,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CRYPTO_ALG_TYPE_BLKCIPHER:
|
case CRYPTO_ALG_TYPE_ABLKCIPHER:
|
||||||
ctx_req.req.ablk_req = (struct ablkcipher_request *)req;
|
ctx_req.req.ablk_req = (struct ablkcipher_request *)req;
|
||||||
ctx_req.ctx.ablk_ctx =
|
ctx_req.ctx.ablk_ctx =
|
||||||
ablkcipher_request_ctx(ctx_req.req.ablk_req);
|
ablkcipher_request_ctx(ctx_req.req.ablk_req);
|
||||||
@ -2492,7 +2492,7 @@ static struct chcr_alg_template driver_algs[] = {
|
|||||||
.cra_name = "cbc(aes)",
|
.cra_name = "cbc(aes)",
|
||||||
.cra_driver_name = "cbc-aes-chcr",
|
.cra_driver_name = "cbc-aes-chcr",
|
||||||
.cra_priority = CHCR_CRA_PRIORITY,
|
.cra_priority = CHCR_CRA_PRIORITY,
|
||||||
.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER |
|
.cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER |
|
||||||
CRYPTO_ALG_ASYNC,
|
CRYPTO_ALG_ASYNC,
|
||||||
.cra_blocksize = AES_BLOCK_SIZE,
|
.cra_blocksize = AES_BLOCK_SIZE,
|
||||||
.cra_ctxsize = sizeof(struct chcr_context)
|
.cra_ctxsize = sizeof(struct chcr_context)
|
||||||
@ -2519,7 +2519,7 @@ static struct chcr_alg_template driver_algs[] = {
|
|||||||
.cra_name = "xts(aes)",
|
.cra_name = "xts(aes)",
|
||||||
.cra_driver_name = "xts-aes-chcr",
|
.cra_driver_name = "xts-aes-chcr",
|
||||||
.cra_priority = CHCR_CRA_PRIORITY,
|
.cra_priority = CHCR_CRA_PRIORITY,
|
||||||
.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER |
|
.cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER |
|
||||||
CRYPTO_ALG_ASYNC,
|
CRYPTO_ALG_ASYNC,
|
||||||
.cra_blocksize = AES_BLOCK_SIZE,
|
.cra_blocksize = AES_BLOCK_SIZE,
|
||||||
.cra_ctxsize = sizeof(struct chcr_context) +
|
.cra_ctxsize = sizeof(struct chcr_context) +
|
||||||
|
Loading…
Reference in New Issue
Block a user