From a4ce224cd1dbb76cfa3ac4c9f6e19df933b909bb Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 9 Nov 2017 15:49:27 -0500 Subject: [PATCH] pass correct crypto type to identity --- libi2pd/Identity.cpp | 2 +- libi2pd_client/ClientContext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/Identity.cpp b/libi2pd/Identity.cpp index 42eae215..6d207dd5 100644 --- a/libi2pd/Identity.cpp +++ b/libi2pd/Identity.cpp @@ -657,7 +657,7 @@ namespace data uint8_t publicKey[256]; GenerateCryptoKeyPair (cryptoType, keys.m_PrivateKey, publicKey); // identity - keys.m_Public = std::make_shared (publicKey, signingPublicKey, type); + keys.m_Public = std::make_shared (publicKey, signingPublicKey, type, cryptoType); keys.CreateSigner (); return keys; diff --git a/libi2pd_client/ClientContext.cpp b/libi2pd_client/ClientContext.cpp index f77e140b..8d29321e 100644 --- a/libi2pd_client/ClientContext.cpp +++ b/libi2pd_client/ClientContext.cpp @@ -304,7 +304,7 @@ namespace client } else { - LogPrint (eLogError, "Clients: can't open file ", fullPath, " Creating new one with signature type ", sigType); + LogPrint (eLogError, "Clients: can't open file ", fullPath, " Creating new one with signature type ", sigType, " crypto type ", cryptoType); keys = i2p::data::PrivateKeys::CreateRandomKeys (sigType, cryptoType); std::ofstream f (fullPath, std::ofstream::binary | std::ofstream::out); size_t len = keys.GetFullLen ();