generate_test_keys: generate also RSA public key arrays
This is to manage RSA and EC keys in the same way in order to
prepare for the following commits.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
diff --git a/tests/suites/test_suite_pk.function b/tests/suites/test_suite_pk.function
index 5e63214..1e52ae6 100644
--- a/tests/suites/test_suite_pk.function
+++ b/tests/suites/test_suite_pk.function
@@ -194,12 +194,18 @@
};
struct key_lut_element keys_lut[] = {
- { 1024, test_rsa_1024, sizeof(test_rsa_1024), NULL, 0 },
- { 1026, test_rsa_1026, sizeof(test_rsa_1026), NULL, 0 },
- { 1028, test_rsa_1028, sizeof(test_rsa_1028), NULL, 0 },
- { 1030, test_rsa_1030, sizeof(test_rsa_1030), NULL, 0 },
- { 2048, test_rsa_2048, sizeof(test_rsa_2048), NULL, 0 },
- { 4096, test_rsa_4096, sizeof(test_rsa_4096), NULL, 0 },
+ { 1024, test_rsa_1024_priv, sizeof(test_rsa_1024_priv),
+ test_rsa_1024_pub, sizeof(test_rsa_1024_pub) },
+ { 1026, test_rsa_1026_priv, sizeof(test_rsa_1026_priv),
+ test_rsa_1026_pub, sizeof(test_rsa_1026_pub) },
+ { 1028, test_rsa_1028_priv, sizeof(test_rsa_1028_priv),
+ test_rsa_1028_pub, sizeof(test_rsa_1028_pub) },
+ { 1030, test_rsa_1030_priv, sizeof(test_rsa_1030_priv),
+ test_rsa_1030_pub, sizeof(test_rsa_1030_pub) },
+ { 2048, test_rsa_2048_priv, sizeof(test_rsa_2048_priv),
+ test_rsa_2048_pub, sizeof(test_rsa_2048_pub) },
+ { 4096, test_rsa_4096_priv, sizeof(test_rsa_4096_priv),
+ test_rsa_4096_pub, sizeof(test_rsa_4096_pub) },
{ MBEDTLS_ECP_DP_SECP192R1, test_ec_secp192r1_priv, sizeof(test_ec_secp192r1_priv),
test_ec_secp192r1_pub, sizeof(test_ec_secp192r1_pub) },
{ MBEDTLS_ECP_DP_SECP224R1, test_ec_secp224r1_priv, sizeof(test_ec_secp224r1_priv),