From 070edfd92f8f83a93312a7df5f59048d74286584 Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Thu, 18 Aug 2016 12:03:17 +0200 Subject: ltq-deu: fix cra_priority With the default priority of 0, the DEU algos would be overlapped by the generic algos (if available). To fix this, set the cra_priority of the hardware algos to the recommended value of 300/400. Signed-off-by: Martin Schiller --- package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c') diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c index ee56187..d0818dd 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c @@ -242,6 +242,7 @@ static void arc4_crypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) static struct crypto_alg ifxdeu_arc4_alg = { .cra_name = "arc4", .cra_driver_name = "ifxdeu-arc4", + .cra_priority = 300, .cra_flags = CRYPTO_ALG_TYPE_CIPHER, .cra_blocksize = ARC4_BLOCK_SIZE, .cra_ctxsize = sizeof(struct arc4_ctx), @@ -324,6 +325,7 @@ static int ecb_arc4_decrypt(struct blkcipher_desc *desc, static struct crypto_alg ifxdeu_ecb_arc4_alg = { .cra_name = "ecb(arc4)", .cra_driver_name = "ifxdeu-ecb(arc4)", + .cra_priority = 400, .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, .cra_blocksize = ARC4_BLOCK_SIZE, .cra_ctxsize = sizeof(struct arc4_ctx), -- cgit v1.1