mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
crypto: testmgr - avoid DMA mapping from text, rodata, stack
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 <[email protected]> Acked-by: Kim Phillips <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
126ae9adc1
commit
29b77e5dd8
2 changed files with 50 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue