crypto: ccree - drop useless type flag during reg
Drop the explicit setting of CRYPTO_ALG_TYPE_AEAD or CRYPTO_ALG_TYPE_SKCIPHER flags during alg registration as they are set anyway by the framework. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committed by
Herbert Xu

parent
318abdfbe7
commit
76c9e53e63
@@ -968,7 +968,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ecb(paes)",
|
||||
.driver_name = "ecb-paes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_sethkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -985,7 +984,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "cbc(paes)",
|
||||
.driver_name = "cbc-paes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_sethkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1002,7 +1000,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ofb(paes)",
|
||||
.driver_name = "ofb-paes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_sethkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1019,7 +1016,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "cts(cbc(paes))",
|
||||
.driver_name = "cts-cbc-paes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_sethkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1036,7 +1032,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ctr(paes)",
|
||||
.driver_name = "ctr-paes-ccree",
|
||||
.blocksize = 1,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_sethkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1203,7 +1198,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ecb(aes)",
|
||||
.driver_name = "ecb-aes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1220,7 +1214,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "cbc(aes)",
|
||||
.driver_name = "cbc-aes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1237,7 +1230,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ofb(aes)",
|
||||
.driver_name = "ofb-aes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1254,7 +1246,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "cts(cbc(aes))",
|
||||
.driver_name = "cts-cbc-aes-ccree",
|
||||
.blocksize = AES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1271,7 +1262,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ctr(aes)",
|
||||
.driver_name = "ctr-aes-ccree",
|
||||
.blocksize = 1,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1288,7 +1278,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "cbc(des3_ede)",
|
||||
.driver_name = "cbc-3des-ccree",
|
||||
.blocksize = DES3_EDE_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1305,7 +1294,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ecb(des3_ede)",
|
||||
.driver_name = "ecb-3des-ccree",
|
||||
.blocksize = DES3_EDE_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1322,7 +1310,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "cbc(des)",
|
||||
.driver_name = "cbc-des-ccree",
|
||||
.blocksize = DES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
@@ -1339,7 +1326,6 @@ static const struct cc_alg_template skcipher_algs[] = {
|
||||
.name = "ecb(des)",
|
||||
.driver_name = "ecb-des-ccree",
|
||||
.blocksize = DES_BLOCK_SIZE,
|
||||
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
|
||||
.template_skcipher = {
|
||||
.setkey = cc_cipher_setkey,
|
||||
.encrypt = cc_cipher_encrypt,
|
||||
|
Reference in New Issue
Block a user