diff options
author | Horia Geanta <horia.geanta@freescale.com> | 2014-07-23 11:59:38 +0300 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-09-18 12:48:51 -0500 |
commit | 33597e348b2d60dd5c71890ef7b7d3d3fd6e4e97 (patch) | |
tree | 37c197bba7124ba9f9ec18ea7b7d1f8231acbd34 /crypto/testmgr.h | |
parent | 8ab15a209a92b62f72e3721dd1780baac59d7082 (diff) |
crypto: testmgr - avoid DMA mapping from text, rodata, stackrel_imx_3.10.17_1.0.2_ga
With DMA_API_DEBUG set, following warnings are emitted
(tested on CAAM accelerator):
DMA-API: device driver maps memory from kernel text or rodata
DMA-API: device driver maps memory from stack
and the culprits are:
-key in __test_aead and __test_hash
-result in __test_hash
MAX_KEYLEN is changed to accommodate maximum key length from
existing test vectors in crypto/testmgr.h (131 bytes) and rounded.
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r-- | crypto/testmgr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 1e701bc075b9..0feb6ec4293c 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h @@ -32,7 +32,7 @@ #define MAX_DIGEST_SIZE 64 #define MAX_TAP 8 -#define MAX_KEYLEN 56 +#define MAX_KEYLEN 160 #define MAX_IVLEN 32 struct hash_testvec { |