MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / MixKey

Method MixKey

libi2pd/Crypto.cpp:844–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842 }
843
844 void NoiseSymmetricState::MixKey (const uint8_t * sharedSecret)
845 {
846 HKDF (m_CK, sharedSecret, 32, "", m_CK);
847 // new ck is m_CK[0:31], key is m_CK[32:63]
848 m_N = 0;
849 }
850
851 bool NoiseSymmetricState::Encrypt (const uint8_t * in, uint8_t * out, size_t len)
852 {

Callers 9

HandleNextMessageMethod · 0.80
SendSessionRequestMethod · 0.80
ProcessSessionRequestMethod · 0.80
SendSessionCreatedMethod · 0.80
ProcessSessionCreatedMethod · 0.80
SendSessionConfirmedMethod · 0.80

Calls 1

HKDFFunction · 0.85

Tested by

no test coverage detected