From 9439750179b4541c91c7d9ad1b6179baada8f141 Mon Sep 17 00:00:00 2001 From: Devel Date: Fri, 13 Apr 2018 13:28:31 +0200 Subject: Updated library according to the latest changes about security in libparc Change-Id: I04e53c986f6cb17679edc60e24c8c7c42fc9aad3 Signed-off-by: Devel --- .../ccnx/transport/transport_rta/components/codec_Signing.c | 2 +- .../transport_rta/components/test/test_component_Codec_Tlv.c | 2 +- .../transport_rta/connectors/test/test_connector_Forwarder_Local.c | 2 +- .../transport_rta/connectors/test/test_connector_Forwarder_Metis.c | 2 +- .../transport/transport_rta/core/test/test_rta_Framework_Commands.c | 2 +- .../ccnx/transport/transport_rta/test/test_multi_connections.c | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libccnx-transport-rta/ccnx/transport/transport_rta') diff --git a/libccnx-transport-rta/ccnx/transport/transport_rta/components/codec_Signing.c b/libccnx-transport-rta/ccnx/transport/transport_rta/components/codec_Signing.c index 322bea2e..0e6b7716 100644 --- a/libccnx-transport-rta/ccnx/transport/transport_rta/components/codec_Signing.c +++ b/libccnx-transport-rta/ccnx/transport/transport_rta/components/codec_Signing.c @@ -62,7 +62,7 @@ component_Codec_GetSigner(RtaConnection *conn) PARCPkcs12KeyStore *pkcs12KeyStore = parcPkcs12KeyStore_Open(params.filename, params.password, PARCCryptoHashType_SHA256); PARCKeyStore *keyStore = parcKeyStore_Create(pkcs12KeyStore, PARCPkcs12KeyStoreAsKeyStore); parcPkcs12KeyStore_Release(&pkcs12KeyStore); - PARCPublicKeySigner *publicKeySigner = parcPublicKeySigner_Create(keyStore, PARCSigningAlgorithm_RSA, PARCCryptoHashType_SHA256); + PARCPublicKeySigner *publicKeySigner = parcPublicKeySigner_Create(keyStore, PARCCryptoSuite_RSA_SHA256); parcKeyStore_Release(&keyStore); signer = parcSigner_Create(publicKeySigner, PARCPublicKeySignerAsSigner); diff --git a/libccnx-transport-rta/ccnx/transport/transport_rta/components/test/test_component_Codec_Tlv.c b/libccnx-transport-rta/ccnx/transport/transport_rta/components/test/test_component_Codec_Tlv.c index 1990d8ae..6ee7d65a 100644 --- a/libccnx-transport-rta/ccnx/transport/transport_rta/components/test/test_component_Codec_Tlv.c +++ b/libccnx-transport-rta/ccnx/transport/transport_rta/components/test/test_component_Codec_Tlv.c @@ -61,7 +61,7 @@ codecTlv_CreateParams(const char *keystore_filename, const char *keystore_passwo unlink(keystore_filename); - bool success = parcPkcs12KeyStore_CreateFile(keystore_filename, keystore_password, "alice", 1024, 30); + bool success = parcPkcs12KeyStore_CreateFile(keystore_filename, keystore_password, "alice", PARCSigningAlgorithm_RSA, 1024, 30); assertTrue(success, "parcPkcs12KeyStore_CreateFile() failed."); publicKeySigner_ConnectionConfig(connConfig, keystore_filename, keystore_password); diff --git a/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Local.c b/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Local.c index 014f4bbe..cecaf76e 100644 --- a/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Local.c +++ b/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Local.c @@ -92,7 +92,7 @@ _commonSetup(void) unlink(data->keystoreName); - bool success = parcPkcs12KeyStore_CreateFile(data->keystoreName, data->keystorePassword, "user", 1024, 30); + bool success = parcPkcs12KeyStore_CreateFile(data->keystoreName, data->keystorePassword, "user", PARCSigningAlgorithm_RSA, 1024, 30); assertTrue(success, "parcPkcs12KeyStore_CreateFile() failed."); data->commandRingBuffer = parcRingBuffer1x1_Create(128, NULL); diff --git a/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Metis.c b/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Metis.c index 6fe9e3d2..1793a635 100644 --- a/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Metis.c +++ b/libccnx-transport-rta/ccnx/transport/transport_rta/connectors/test/test_connector_Forwarder_Metis.c @@ -441,7 +441,7 @@ LONGBOW_TEST_RUNNER_SETUP(connector_Forwarder_Metis) // init + fini here so there's no memory imbalance parcSecurity_Init(); - parcPkcs12KeyStore_CreateFile(keystorename, keystorepass, "ccnxuser", 1024, 365); + parcPkcs12KeyStore_CreateFile(keystorename, keystorepass, "ccnxuser", PARCSigningAlgorithm_RSA, 1024, 365); parcSecurity_Fini(); return LONGBOW_STATUS_SUCCEEDED; diff --git a/libccnx-transport-rta/ccnx/transport/transport_rta/core/test/test_rta_Framework_Commands.c b/libccnx-transport-rta/ccnx/transport/transport_rta/core/test/test_rta_Framework_Commands.c index d19d680b..65b50196 100644 --- a/libccnx-transport-rta/ccnx/transport/transport_rta/core/test/test_rta_Framework_Commands.c +++ b/libccnx-transport-rta/ccnx/transport/transport_rta/core/test/test_rta_Framework_Commands.c @@ -126,7 +126,7 @@ _commonSetup(void) sprintf(data->keystorePassword, "23439429"); - bool success = parcPkcs12KeyStore_CreateFile(data->keystoreName, data->keystorePassword, "user", 1024, 30); + bool success = parcPkcs12KeyStore_CreateFile(data->keystoreName, data->keystorePassword, "user", PARCSigningAlgorithm_RSA, 1024, 30); assertTrue(success, "parcPublicKeySignerPkcs12Store_CreateFile() failed."); close(fd); diff --git a/libccnx-transport-rta/ccnx/transport/transport_rta/test/test_multi_connections.c b/libccnx-transport-rta/ccnx/transport/transport_rta/test/test_multi_connections.c index 8f0051a0..000ce124 100644 --- a/libccnx-transport-rta/ccnx/transport/transport_rta/test/test_multi_connections.c +++ b/libccnx-transport-rta/ccnx/transport/transport_rta/test/test_multi_connections.c @@ -227,9 +227,9 @@ stackSetup(const char *alice_nonce, const char *bob_nonce) unlink(alice_keystore_name); unlink(bob_keystore_name); - bool success = parcPkcs12KeyStore_CreateFile(alice_keystore_name, "23456", "alice", 1024, 30); + bool success = parcPkcs12KeyStore_CreateFile(alice_keystore_name, "23456", "alice", PARCSigningAlgorithm_RSA, 1024, 30); assertTrue(success, "parcPkcs12Store_CreateFile() failed."); - success = parcPkcs12KeyStore_CreateFile(bob_keystore_name, "34567", "bob", 2048, 15); + success = parcPkcs12KeyStore_CreateFile(bob_keystore_name, "34567", "bob", PARCSigningAlgorithm_RSA, 2048, 15); assertTrue(success, "parcPkcs12Store_CreateFile() failed."); alice_params = MultipleConnections_createParams(local_name, alice_keystore_name, "23456", alice_nonce); -- cgit 1.2.3-korg