diff options
author | Devel <acompagn+fdio@cisco.com> | 2018-04-13 13:28:31 +0200 |
---|---|---|
committer | Devel <acompagn+fdio@cisco.com> | 2018-04-13 13:28:51 +0200 |
commit | 9439750179b4541c91c7d9ad1b6179baada8f141 (patch) | |
tree | 5f1f4a668648a873e9e3e55defc93982a9812217 /libccnx-common/ccnx/common/ccnx_KeystoreUtilities.c | |
parent | ed721c097187deece705ae663c6bffb1fc107c6d (diff) |
Updated library according to the latest changes about security in libparc
Change-Id: I04e53c986f6cb17679edc60e24c8c7c42fc9aad3
Signed-off-by: Devel <acompagn+fdio@cisco.com>
Diffstat (limited to 'libccnx-common/ccnx/common/ccnx_KeystoreUtilities.c')
-rwxr-xr-x | libccnx-common/ccnx/common/ccnx_KeystoreUtilities.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libccnx-common/ccnx/common/ccnx_KeystoreUtilities.c b/libccnx-common/ccnx/common/ccnx_KeystoreUtilities.c index aac2ddd0..1ba0c617 100755 --- a/libccnx-common/ccnx/common/ccnx_KeystoreUtilities.c +++ b/libccnx-common/ccnx/common/ccnx_KeystoreUtilities.c @@ -94,7 +94,7 @@ ccnxKeystoreUtilities_OpenFromPath(const char *path, const char *password) PARCPkcs12KeyStore *keyStore = parcPkcs12KeyStore_Open(path, password, PARCCryptoHashType_SHA256); PARCKeyStore *publicKeyStore = parcKeyStore_Create(keyStore, PARCPkcs12KeyStoreAsKeyStore); parcPkcs12KeyStore_Release(&keyStore); - PARCPublicKeySigner *pksigner = parcPublicKeySigner_Create(publicKeyStore, PARCSigningAlgorithm_RSA, PARCCryptoHashType_SHA256); + PARCPublicKeySigner *pksigner = parcPublicKeySigner_Create(publicKeyStore, PARCCryptoSuite_RSA_SHA256); PARCSigner *signer = parcSigner_Create(pksigner, PARCPublicKeySignerAsSigner); parcPublicKeySigner_Release(&pksigner); @@ -114,12 +114,12 @@ ccnxKeystoreUtilities_CreateInPath(const char *path, const char *password, int k { KeystoreParams *params = NULL; - bool success = parcPkcs12KeyStore_CreateFile(path, password, "ccnxuser", keystoreBits, keystoreDays); + bool success = parcPkcs12KeyStore_CreateFile(path, password, "ccnxuser", PARCSigningAlgorithm_RSA, keystoreBits, keystoreDays); if (success) { PARCPkcs12KeyStore *keyStore = parcPkcs12KeyStore_Open(path, password, PARCCryptoHashType_SHA256); PARCKeyStore *publicKeyStore = parcKeyStore_Create(keyStore, PARCPkcs12KeyStoreAsKeyStore); parcPkcs12KeyStore_Release(&keyStore); - PARCPublicKeySigner *pksigner = parcPublicKeySigner_Create(publicKeyStore, PARCSigningAlgorithm_RSA, PARCCryptoHashType_SHA256); + PARCPublicKeySigner *pksigner = parcPublicKeySigner_Create(publicKeyStore, PARCCryptoSuite_RSA_SHA256); PARCSigner *signer = parcSigner_Create(pksigner, PARCPublicKeySignerAsSigner); parcPublicKeySigner_Release(&pksigner); |