commit 5e3d1ae9662c03545942e86ae5f06629e1ceca0e
Author: Matthew Shyu <matthew.shyu@amlogic.com>
Date: Thu Jun 27 21:19:07 2024 -0700
core: arm64: Fixing SHA3-224 failed when using ARMv8.2-A cryptographic extensions [1/1]
PD#SWPL-164772
The block size of SHA3-224 is 144 bytes. In sha3_armv8a_ce_a64.S, it is
reading 152 bytes and deriving incorrect result.
Observing SHA3-224 failed on long input message.
o regression_4001.8 Hash case 7 algo 0x50000008
regression_4001.8 OK
o regression_4001.9 Hash case 8 algo 0x50000008
vendor/amlogic/common/optee_test/host/xtest/regression_4000.c:1336: out has an unexpected content:
Got
06:F9:E6:CB 65:6C:15:4B 04:79:00:72 E5:F0:61:24 ....el.K.y.r..a$
F6:DE:1E:F8 B6:DB:33:9F A5:0B:38:CF ......3...8.
Expected
AA:B2:3C:9E 7F:B9:D7:DA CE:FD:FD:0B 1A:E8:5A:B1 ..<...........Z.
37:4A:BF:F7 C4:E3:F7:55 6E:CA:E4:12 7J.....Un...
...
vendor/amlogic/common/optee_test/host/xtest/regression_4000.c:1388: out has an unexpected content:
Got
C8:8E:8D:D6 ....
Expected
AA:B2:3C:9E ..<.
vendor/amlogic/common/optee_test/host/xtest/regression_4000.c:1401: out has an unexpected content:
Change-Id: I821f5f66d09550461d94ac731cc99cb6ee875aa9
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Change-Id: I3ce4d62c7d29d8defc4f323e3de05c83f32a95ce
21 files changed