diff options
author | Daniel Kestrel <kestrel1974@t-online.de> | 2021-06-05 23:49:59 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-01-06 00:22:53 +0100 |
commit | 9cb1875d2fcf20c208a63693d7395eb4963f59cb (patch) | |
tree | 4b907773b7f0f6acfaad689be7a1ae71c1a63040 /package | |
parent | 34a3eaf07f6a814d77cbdaa6c8a14604a37f7784 (diff) | |
download | upstream-9cb1875d2fcf20c208a63693d7395eb4963f59cb.tar.gz upstream-9cb1875d2fcf20c208a63693d7395eb4963f59cb.tar.bz2 upstream-9cb1875d2fcf20c208a63693d7395eb4963f59cb.zip |
ltq-deu: fix ifxdeu-ctr-rfc3686(aes) not matching generic impl
Error ifxdeu-ctr-rfc3686(aes) (16) doesn't match generic impl (20) occurs
when running the cryptomgr extra tests that compare against the linux
kernels generic implementation.
Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c index b4417f2ef3..a55766a4ac 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c @@ -86,6 +86,7 @@ spinlock_t aes_lock; #define AES_BLOCK_SIZE 16 #define CTR_RFC3686_NONCE_SIZE 4 #define CTR_RFC3686_IV_SIZE 8 +#define CTR_RFC3686_MIN_KEY_SIZE (AES_MIN_KEY_SIZE + CTR_RFC3686_NONCE_SIZE) #define CTR_RFC3686_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE) #ifdef CRYPTO_DEBUG @@ -1011,7 +1012,7 @@ struct skcipher_alg ifxdeu_ctr_rfc3686_aes_alg = { .base.cra_ctxsize = sizeof(struct aes_ctx), .base.cra_module = THIS_MODULE, .base.cra_list = LIST_HEAD_INIT(ifxdeu_ctr_rfc3686_aes_alg.base.cra_list), - .min_keysize = AES_MIN_KEY_SIZE, + .min_keysize = CTR_RFC3686_MIN_KEY_SIZE, .max_keysize = CTR_RFC3686_MAX_KEY_SIZE, .ivsize = CTR_RFC3686_IV_SIZE, .walksize = AES_BLOCK_SIZE, |