mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user