| 351 | } |
| 352 | |
| 353 | void Session::DestGenerate(const Sock& sock) |
| 354 | { |
| 355 | // https://geti2p.net/spec/common-structures#key-certificates |
| 356 | // "7" or "EdDSA_SHA512_Ed25519" - "Recent Router Identities and Destinations". |
| 357 | // Use "7" because i2pd <2.24.0 does not recognize the textual form. |
| 358 | // If SIGNATURE_TYPE is not specified, then the default one is DSA_SHA1. |
| 359 | const Reply& reply = SendRequestAndGetReply(sock, "DEST GENERATE SIGNATURE_TYPE=7", false); |
| 360 | |
| 361 | m_private_key = DecodeI2PBase64(reply.Get("PRIV")); |
| 362 | } |
| 363 | |
| 364 | void Session::GenerateAndSavePrivateKey(const Sock& sock) |
| 365 | { |
nothing calls this directly
no test coverage detected