crypto: skcipher - remove useless setting of type flags
Some skcipher algorithms set .cra_flags = CRYPTO_ALG_TYPE_SKCIPHER. But this is redundant with the C structure type ('struct skcipher_alg'), and crypto_register_skcipher() already sets the type flag automatically, clearing any type flag that was already there. Apparently the useless assignment has just been copy+pasted around. So, remove the useless assignment from all the skcipher algorithms. This patch shouldn't change any actual behavior. Signed-off-by: Eric Biggers <ebiggers@google.com> Acked-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
这个提交包含在:
@@ -92,8 +92,7 @@ static struct sun4i_ss_alg_template ss_algs[] = {
|
||||
.cra_driver_name = "cbc-aes-sun4i-ss",
|
||||
.cra_priority = 300,
|
||||
.cra_blocksize = AES_BLOCK_SIZE,
|
||||
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER |
|
||||
CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_ctxsize = sizeof(struct sun4i_tfm_ctx),
|
||||
.cra_module = THIS_MODULE,
|
||||
.cra_alignmask = 3,
|
||||
@@ -114,8 +113,7 @@ static struct sun4i_ss_alg_template ss_algs[] = {
|
||||
.cra_driver_name = "ecb-aes-sun4i-ss",
|
||||
.cra_priority = 300,
|
||||
.cra_blocksize = AES_BLOCK_SIZE,
|
||||
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER |
|
||||
CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_ctxsize = sizeof(struct sun4i_tfm_ctx),
|
||||
.cra_module = THIS_MODULE,
|
||||
.cra_alignmask = 3,
|
||||
@@ -136,8 +134,7 @@ static struct sun4i_ss_alg_template ss_algs[] = {
|
||||
.cra_driver_name = "cbc-des-sun4i-ss",
|
||||
.cra_priority = 300,
|
||||
.cra_blocksize = DES_BLOCK_SIZE,
|
||||
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER |
|
||||
CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_ctxsize = sizeof(struct sun4i_req_ctx),
|
||||
.cra_module = THIS_MODULE,
|
||||
.cra_alignmask = 3,
|
||||
@@ -157,8 +154,7 @@ static struct sun4i_ss_alg_template ss_algs[] = {
|
||||
.cra_driver_name = "ecb-des-sun4i-ss",
|
||||
.cra_priority = 300,
|
||||
.cra_blocksize = DES_BLOCK_SIZE,
|
||||
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER |
|
||||
CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_ctxsize = sizeof(struct sun4i_req_ctx),
|
||||
.cra_module = THIS_MODULE,
|
||||
.cra_alignmask = 3,
|
||||
@@ -179,8 +175,7 @@ static struct sun4i_ss_alg_template ss_algs[] = {
|
||||
.cra_driver_name = "cbc-des3-sun4i-ss",
|
||||
.cra_priority = 300,
|
||||
.cra_blocksize = DES3_EDE_BLOCK_SIZE,
|
||||
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER |
|
||||
CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY,
|
||||
.cra_ctxsize = sizeof(struct sun4i_req_ctx),
|
||||
.cra_module = THIS_MODULE,
|
||||
.cra_alignmask = 3,
|
||||
@@ -201,7 +196,6 @@ static struct sun4i_ss_alg_template ss_algs[] = {
|
||||
.cra_driver_name = "ecb-des3-sun4i-ss",
|
||||
.cra_priority = 300,
|
||||
.cra_blocksize = DES3_EDE_BLOCK_SIZE,
|
||||
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER,
|
||||
.cra_ctxsize = sizeof(struct sun4i_req_ctx),
|
||||
.cra_module = THIS_MODULE,
|
||||
.cra_alignmask = 3,
|
||||
|
在新工单中引用
屏蔽一个用户