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

Method MixHash

libi2pd/Crypto.cpp:823–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821 }
822
823 void NoiseSymmetricState::MixHash (const uint8_t * buf, size_t len)
824 {
825 EVP_MD_CTX *ctx = EVP_MD_CTX_new ();
826 EVP_DigestInit_ex(ctx, EVP_sha256 (), NULL);
827 EVP_DigestUpdate (ctx, m_H, 32);
828 EVP_DigestUpdate (ctx, buf, len);
829 EVP_DigestFinal_ex (ctx, m_H, nullptr);
830 EVP_MD_CTX_free (ctx);
831 }
832
833 void NoiseSymmetricState::MixHash (const std::vector<std::pair<uint8_t *, size_t> >& bufs)
834 {

Callers 9

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

Calls

no outgoing calls

Tested by

no test coverage detected