Commit e69b8a46 authored by Stephan Mueller's avatar Stephan Mueller Committed by Herbert Xu

crypto: cast6_avx - mark CAST6 helper ciphers

Flag all CAST6 helper ciphers as internal ciphers to prevent them
from being called by normal users.
Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7d2c31dd
...@@ -372,7 +372,8 @@ static struct crypto_alg cast6_algs[10] = { { ...@@ -372,7 +372,8 @@ static struct crypto_alg cast6_algs[10] = { {
.cra_name = "__ecb-cast6-avx", .cra_name = "__ecb-cast6-avx",
.cra_driver_name = "__driver-ecb-cast6-avx", .cra_driver_name = "__driver-ecb-cast6-avx",
.cra_priority = 0, .cra_priority = 0,
.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER |
CRYPTO_ALG_INTERNAL,
.cra_blocksize = CAST6_BLOCK_SIZE, .cra_blocksize = CAST6_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct cast6_ctx), .cra_ctxsize = sizeof(struct cast6_ctx),
.cra_alignmask = 0, .cra_alignmask = 0,
...@@ -391,7 +392,8 @@ static struct crypto_alg cast6_algs[10] = { { ...@@ -391,7 +392,8 @@ static struct crypto_alg cast6_algs[10] = { {
.cra_name = "__cbc-cast6-avx", .cra_name = "__cbc-cast6-avx",
.cra_driver_name = "__driver-cbc-cast6-avx", .cra_driver_name = "__driver-cbc-cast6-avx",
.cra_priority = 0, .cra_priority = 0,
.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER |
CRYPTO_ALG_INTERNAL,
.cra_blocksize = CAST6_BLOCK_SIZE, .cra_blocksize = CAST6_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct cast6_ctx), .cra_ctxsize = sizeof(struct cast6_ctx),
.cra_alignmask = 0, .cra_alignmask = 0,
...@@ -410,7 +412,8 @@ static struct crypto_alg cast6_algs[10] = { { ...@@ -410,7 +412,8 @@ static struct crypto_alg cast6_algs[10] = { {
.cra_name = "__ctr-cast6-avx", .cra_name = "__ctr-cast6-avx",
.cra_driver_name = "__driver-ctr-cast6-avx", .cra_driver_name = "__driver-ctr-cast6-avx",
.cra_priority = 0, .cra_priority = 0,
.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER |
CRYPTO_ALG_INTERNAL,
.cra_blocksize = 1, .cra_blocksize = 1,
.cra_ctxsize = sizeof(struct cast6_ctx), .cra_ctxsize = sizeof(struct cast6_ctx),
.cra_alignmask = 0, .cra_alignmask = 0,
...@@ -430,7 +433,8 @@ static struct crypto_alg cast6_algs[10] = { { ...@@ -430,7 +433,8 @@ static struct crypto_alg cast6_algs[10] = { {
.cra_name = "__lrw-cast6-avx", .cra_name = "__lrw-cast6-avx",
.cra_driver_name = "__driver-lrw-cast6-avx", .cra_driver_name = "__driver-lrw-cast6-avx",
.cra_priority = 0, .cra_priority = 0,
.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER |
CRYPTO_ALG_INTERNAL,
.cra_blocksize = CAST6_BLOCK_SIZE, .cra_blocksize = CAST6_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct cast6_lrw_ctx), .cra_ctxsize = sizeof(struct cast6_lrw_ctx),
.cra_alignmask = 0, .cra_alignmask = 0,
...@@ -453,7 +457,8 @@ static struct crypto_alg cast6_algs[10] = { { ...@@ -453,7 +457,8 @@ static struct crypto_alg cast6_algs[10] = { {
.cra_name = "__xts-cast6-avx", .cra_name = "__xts-cast6-avx",
.cra_driver_name = "__driver-xts-cast6-avx", .cra_driver_name = "__driver-xts-cast6-avx",
.cra_priority = 0, .cra_priority = 0,
.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER |
CRYPTO_ALG_INTERNAL,
.cra_blocksize = CAST6_BLOCK_SIZE, .cra_blocksize = CAST6_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct cast6_xts_ctx), .cra_ctxsize = sizeof(struct cast6_xts_ctx),
.cra_alignmask = 0, .cra_alignmask = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment