Skip to content

Commit 3369368

Browse files
nasahlpavogelpi
authored andcommitted
[cryptotest] Switch security level to low for KMAC functest
#27673 introduced device security checks that are enabled when the key.securitry_level > kOtcryptoKeySecurityLevelLow. As this check fails on FPGAs (the corresponding ROM does not enable some of the security features), set key.security_level = kOtcryptoKeySecurityLevelLow for the kmac_functest. This does not influence the KMAC testing as currently the security level is not used within the KMAC driver.. Signed-off-by: Pascal Nasahl <[email protected]>
1 parent 099047a commit 3369368

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sw/device/tests/crypto/kmac_sideload_functest.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static kmac_test_vector_t kKmacTestVectors[] = {
5858
.key_length = kKmacSideloadKeyLengthBytes,
5959
.hw_backed = kHardenedBoolTrue,
6060
.exportable = kHardenedBoolFalse,
61-
.security_level = kOtcryptoKeySecurityLevelHigh,
61+
.security_level = kOtcryptoKeySecurityLevelLow,
6262
},
6363
.keyblob_length = 32,
6464
.keyblob =
@@ -114,7 +114,7 @@ static kmac_test_vector_t kKmacTestVectors[] = {
114114
.key_length = kKmacSideloadKeyLengthBytes,
115115
.hw_backed = kHardenedBoolTrue,
116116
.exportable = kHardenedBoolFalse,
117-
.security_level = kOtcryptoKeySecurityLevelHigh,
117+
.security_level = kOtcryptoKeySecurityLevelLow,
118118
},
119119
.keyblob_length = 32,
120120
.keyblob =
@@ -194,7 +194,7 @@ static kmac_test_vector_t kKmacTestVectors[] = {
194194
.key_length = kKmacSideloadKeyLengthBytes,
195195
.hw_backed = kHardenedBoolTrue,
196196
.exportable = kHardenedBoolFalse,
197-
.security_level = kOtcryptoKeySecurityLevelHigh,
197+
.security_level = kOtcryptoKeySecurityLevelLow,
198198
},
199199
.keyblob_length = 32,
200200
.keyblob =

0 commit comments

Comments
 (0)