mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
crypto: rockchip: modify RK_DMA_ALIGNMENT from 64byte to 128byte
For SHA384/SHA512, the data length must be 128 bytes alignment. Otherwise, the calculation results will be incorrect. Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com> Change-Id: If3b16a62d0eaf842ccc8bf954a489508b232a4b3
This commit is contained in:
parent
79bfcdd26c
commit
26b58799e1
|
|
@ -39,7 +39,7 @@
|
|||
#define RK_BUFFER_ORDER 3
|
||||
#define RK_BUFFER_SIZE (PAGE_SIZE << RK_BUFFER_ORDER)
|
||||
|
||||
#define RK_DMA_ALIGNMENT 64
|
||||
#define RK_DMA_ALIGNMENT 128
|
||||
#define sha384_state sha512_state
|
||||
#define sha224_state sha256_state
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user