-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Closed
Copy link
Labels
area: SecuritySecuritySecuritybugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug
Milestone
Description
Reported by ethan gao:
The test of fixed-key with variable-text in AES128 fails due mismatching when encryption
[How to repeoduce]
- checkout Zephyr project and cd tests/crypto/test_aes
- run "make pristine && make BOARD=quark_se_c1000_devboard KERNEL_TYPE=unified flash"
- watch the result from serial output
NOTE: this issue is also observed in QEMU x86, and it's solved by increasing the main stack size.
[Error log]
tc_start() - Performing AES128 tests:
AES128 test_1 (NIST key schedule test):
PASS - test_1.
AES128 test_2 (NIST encryption test):
PASS - test_2.
AES128 test_3 (NIST fixed-key and variable-text):
FAIL - fatal@53. Test #88 Failed!
Expected = %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x
Computed = %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x
===================================================================
FAIL - test_3.
FAIL - main@2057. AES128 test #3 (NIST fixed-key and variable-text) failed.
FAIL - main.
PROJECT EXECUTION FAILED
(Imported from Jira ZEP-1144)
Metadata
Metadata
Assignees
Labels
area: SecuritySecuritySecuritybugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug