Skip to content

Commit 1bdd5ed

Browse files
component-configuration-crypto: Migrated test_sha3_variations to cmake
Signed-off-by: Minos Galanakis <[email protected]>
1 parent e820421 commit 1bdd5ed

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/scripts/components-configuration-crypto.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,20 +2064,23 @@ END
20642064
#define PSA_WANT_ALG_SHA3_384 1
20652065
#define PSA_WANT_ALG_SHA3_512 1
20662066
#define PSA_WANT_KEY_TYPE_AES 1
2067+
#define PSA_WANT_ALG_GCM 1
2068+
#define PSA_WANT_ALG_HKDF 1
20672069
#define MBEDTLS_PSA_CRYPTO_C
20682070
#define MBEDTLS_CTR_DRBG_C
20692071
#define MBEDTLS_PSA_BUILTIN_GET_ENTROPY
20702072
#define MBEDTLS_SELF_TEST
20712073
END
20722074

20732075
msg "all loops unrolled"
2074-
$MAKE_COMMAND clean
2075-
make -C tests ../tf-psa-crypto/tests/test_suite_shax CFLAGS="-DMBEDTLS_SHA3_THETA_UNROLL=1 -DMBEDTLS_SHA3_PI_UNROLL=1 -DMBEDTLS_SHA3_CHI_UNROLL=1 -DMBEDTLS_SHA3_RHO_UNROLL=1"
2076+
CFLAGS="-DMBEDTLS_SHA3_THETA_UNROLL=1 -DMBEDTLS_SHA3_PI_UNROLL=1 -DMBEDTLS_SHA3_CHI_UNROLL=1 -DMBEDTLS_SHA3_RHO_UNROLL=1" cmake -D CMAKE_BUILD_TYPE:String=None .
2077+
cmake --build .
20762078
./tf-psa-crypto/tests/test_suite_shax
20772079

20782080
msg "all loops rolled up"
2079-
$MAKE_COMMAND clean
2080-
make -C tests ../tf-psa-crypto/tests/test_suite_shax CFLAGS="-DMBEDTLS_SHA3_THETA_UNROLL=0 -DMBEDTLS_SHA3_PI_UNROLL=0 -DMBEDTLS_SHA3_CHI_UNROLL=0 -DMBEDTLS_SHA3_RHO_UNROLL=0"
2081+
cmake --build . --target clean
2082+
CFLAGS="-DMBEDTLS_SHA3_THETA_UNROLL=0 -DMBEDTLS_SHA3_PI_UNROLL=0 -DMBEDTLS_SHA3_CHI_UNROLL=0 -DMBEDTLS_SHA3_RHO_UNROLL=0" cmake -D CMAKE_BUILD_TYPE:String=None .
2083+
cmake --build .
20812084
./tf-psa-crypto/tests/test_suite_shax
20822085
}
20832086

0 commit comments

Comments
 (0)