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

Method GetPrivateKey

libi2pd/Crypto.cpp:329–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327 }
328
329 void X25519Keys::GetPrivateKey (uint8_t * priv) const
330 {
331 size_t len = 32;
332 EVP_PKEY_get_raw_private_key (m_Pkey, priv, &len);
333 }
334
335 void X25519Keys::SetPrivateKey (const uint8_t * priv, bool calculatePublic)
336 {

Callers 3

NewNTCP2KeysMethod · 0.45
NewSSU2KeysMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected