Skip to content

Commit 8aa8040

Browse files
sylvioalvesjhedberg
authored andcommitted
tests: crypto: add AES cipher tests
Add AES test cases for ECB, CBC, CCM, and GCM modes with standard test vectors from FIPS-197 and NIST specifications. Signed-off-by: Sylvio Alves <[email protected]>
1 parent 654e4f5 commit 8aa8040

File tree

5 files changed

+616
-0
lines changed

5 files changed

+616
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
cmake_minimum_required(VERSION 3.20.0)
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(crypto_hash)
7+
8+
target_sources(app PRIVATE src/main.c)

tests/crypto/crypto_aes/prj.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CONFIG_ZTEST_STACK_SIZE=4096
2+
CONFIG_ZTEST=y
3+
CONFIG_LOG=y
4+
CONFIG_LOG_MODE_MINIMAL=y
5+
6+
CONFIG_MAIN_STACK_SIZE=4096
7+
8+
CONFIG_CRYPTO=y
9+
CONFIG_CRYPTO_LOG_LEVEL_DBG=y
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CONFIG_MBEDTLS=y
2+
CONFIG_MBEDTLS_BUILTIN=y
3+
CONFIG_MBEDTLS_HEAP_SIZE=512
4+
CONFIG_MBEDTLS_CIPHER_AES_ENABLED=y
5+
CONFIG_MBEDTLS_CIPHER_CCM_ENABLED=y
6+
CONFIG_MBEDTLS_CIPHER_GCM_ENABLED=y
7+
8+
CONFIG_CRYPTO_MBEDTLS_SHIM=y

0 commit comments

Comments
 (0)