Skip to content

Tinycrypt AES128 fixed-key with variable-text test fails using unified kernel type #2639

@zephyrbot

Description

@zephyrbot

Reported by ethan gao:

The test of fixed-key with variable-text in AES128 fails due mismatching when encryption

[How to repeoduce]

  1. checkout Zephyr project and cd tests/crypto/test_aes
  2. run "make pristine && make BOARD=quark_se_c1000_devboard KERNEL_TYPE=unified flash"
  3. 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

No one assigned

    Labels

    area: SecuritySecuritybugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions