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

Function CreateRandomKeys

libi2pd/Identity.cpp:857–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855 }
856
857 Keys CreateRandomKeys ()
858 {
859 Keys keys;
860 // encryption
861 i2p::crypto::GenerateElGamalKeyPair(keys.privateKey, keys.publicKey);
862 // signing
863 i2p::crypto::CreateDSARandomKeys (keys.signingPrivateKey, keys.signingKey);
864 return keys;
865 }
866
867 IdentHash CreateRoutingKey (const IdentHash& ident, bool nextDay)
868 {

Callers 10

LoadPrivateKeysMethod · 0.85
ProcessDestGenerateMethod · 0.85
ResumeMethod · 0.85
NewkeysCommandHandlerMethod · 0.85
BlindTestFunction · 0.85
CreateLocalDestinationFunction · 0.85
CreateRandomKeysMethod · 0.85
CreateNewRouterMethod · 0.85
LoadMethod · 0.85

Calls 2

GenerateElGamalKeyPairFunction · 0.85
CreateDSARandomKeysFunction · 0.85

Tested by 1

BlindTestFunction · 0.68