| 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 | { |