aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/crypto/camellia_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/crypto/camellia_glue.c')
-rw-r--r--arch/sparc/crypto/camellia_glue.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/sparc/crypto/camellia_glue.c b/arch/sparc/crypto/camellia_glue.c
index c258cc550a6b..f45ae69d0d1a 100644
--- a/arch/sparc/crypto/camellia_glue.c
+++ b/arch/sparc/crypto/camellia_glue.c
@@ -14,6 +14,8 @@
14#include <asm/pstate.h> 14#include <asm/pstate.h>
15#include <asm/elf.h> 15#include <asm/elf.h>
16 16
17#include "opcodes.h"
18
17#define CAMELLIA_MIN_KEY_SIZE 16 19#define CAMELLIA_MIN_KEY_SIZE 16
18#define CAMELLIA_MAX_KEY_SIZE 32 20#define CAMELLIA_MAX_KEY_SIZE 32
19#define CAMELLIA_BLOCK_SIZE 16 21#define CAMELLIA_BLOCK_SIZE 16
@@ -219,7 +221,7 @@ static int cbc_decrypt(struct blkcipher_desc *desc,
219static struct crypto_alg algs[] = { { 221static struct crypto_alg algs[] = { {
220 .cra_name = "camellia", 222 .cra_name = "camellia",
221 .cra_driver_name = "camellia-sparc64", 223 .cra_driver_name = "camellia-sparc64",
222 .cra_priority = 150, 224 .cra_priority = SPARC_CR_OPCODE_PRIORITY,
223 .cra_flags = CRYPTO_ALG_TYPE_CIPHER, 225 .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
224 .cra_blocksize = CAMELLIA_BLOCK_SIZE, 226 .cra_blocksize = CAMELLIA_BLOCK_SIZE,
225 .cra_ctxsize = sizeof(struct camellia_sparc64_ctx), 227 .cra_ctxsize = sizeof(struct camellia_sparc64_ctx),
@@ -237,7 +239,7 @@ static struct crypto_alg algs[] = { {
237}, { 239}, {
238 .cra_name = "ecb(camellia)", 240 .cra_name = "ecb(camellia)",
239 .cra_driver_name = "ecb-camellia-sparc64", 241 .cra_driver_name = "ecb-camellia-sparc64",
240 .cra_priority = 150, 242 .cra_priority = SPARC_CR_OPCODE_PRIORITY,
241 .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, 243 .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER,
242 .cra_blocksize = CAMELLIA_BLOCK_SIZE, 244 .cra_blocksize = CAMELLIA_BLOCK_SIZE,
243 .cra_ctxsize = sizeof(struct camellia_sparc64_ctx), 245 .cra_ctxsize = sizeof(struct camellia_sparc64_ctx),
@@ -256,7 +258,7 @@ static struct crypto_alg algs[] = { {
256}, { 258}, {
257 .cra_name = "cbc(camellia)", 259 .cra_name = "cbc(camellia)",
258 .cra_driver_name = "cbc-camellia-sparc64", 260 .cra_driver_name = "cbc-camellia-sparc64",
259 .cra_priority = 150, 261 .cra_priority = SPARC_CR_OPCODE_PRIORITY,
260 .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, 262 .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER,
261 .cra_blocksize = CAMELLIA_BLOCK_SIZE, 263 .cra_blocksize = CAMELLIA_BLOCK_SIZE,
262 .cra_ctxsize = sizeof(struct camellia_sparc64_ctx), 264 .cra_ctxsize = sizeof(struct camellia_sparc64_ctx),