mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
moved Noise initializations to Crypto.cpp
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include "version.h"
|
||||
#include "Log.h"
|
||||
#include "Family.h"
|
||||
#include "TunnelConfig.h"
|
||||
#include "RouterContext.h"
|
||||
|
||||
namespace i2p
|
||||
@@ -45,8 +44,7 @@ namespace i2p
|
||||
if (IsECIES ())
|
||||
{
|
||||
auto initState = new i2p::crypto::NoiseSymmetricState ();
|
||||
i2p::tunnel::InitBuildRequestRecordNoiseState (*initState);
|
||||
initState->MixHash (GetIdentity ()->GetEncryptionPublicKey (), 32); // h = SHA256(h || hepk)
|
||||
i2p::crypto::InitNoiseNState (*initState, GetIdentity ()->GetEncryptionPublicKey ());
|
||||
m_InitialNoiseState.reset (initState);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user