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:
Lin Jinhan
2022-03-18 16:16:15 +08:00
committed by Tao Huang
parent 79bfcdd26c
commit 26b58799e1

View File

@@ -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