From 0d17eea82cbbfa386926c3c0ac1cb2c0d4da960e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 4 Mar 2019 19:43:33 -0500 Subject: [PATCH] Add x25519 default constructor --- xed25519.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xed25519.h b/xed25519.h index c0e0dd30..4a6ac52a 100644 --- a/xed25519.h +++ b/xed25519.h @@ -66,6 +66,13 @@ public: virtual ~x25519() {} + /// \brief Create a x25519 object + /// \details This constructor creates an empty x25519 object. It is + /// intended for use in loading existing parameters, like CryptoBox + /// parameters. If you are perfoming key agreement you should use a + /// constructor that generates random parameters on construction. + x25519() {} + /// \brief Create a x25519 object /// \param y public key /// \param x private key