From 4e6dd922f7eba0f85e4dbf89227a55a08d57e6f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 3 Aug 2019 22:33:46 -0400 Subject: Update documentation --- mqv.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mqv.h') diff --git a/mqv.h b/mqv.h index fbcccd48..f2364207 100644 --- a/mqv.h +++ b/mqv.h @@ -161,7 +161,7 @@ public: memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength()); } - /// \brief Derive shared secre from your private keys and couterparty's public keys + /// \brief Derive shared secret from your private keys and couterparty's public keys /// \param agreedValue the shared secret /// \param staticPrivateKey your long term private key /// \param ephemeralPrivateKey your ephemeral private key @@ -176,11 +176,11 @@ public: /// static public key is validated. If you have previously validated the /// couterparty's static public key, then use /// validateStaticOtherPublicKey=false to save time. - /// \pre size of agreedValue == AgreedValueLength() - /// \pre length of staticPrivateKey == StaticPrivateKeyLength() - /// \pre length of ephemeralPrivateKey == EphemeralPrivateKeyLength() - /// \pre length of staticOtherPublicKey == StaticPublicKeyLength() - /// \pre length of ephemeralOtherPublicKey == EphemeralPublicKeyLength() + /// \pre COUNTOF(agreedValue) == AgreedValueLength() + /// \pre COUNTOF(staticPrivateKey) == StaticPrivateKeyLength() + /// \pre COUNTOF(ephemeralPrivateKey) == EphemeralPrivateKeyLength() + /// \pre COUNTOF(staticOtherPublicKey) == StaticPublicKeyLength() + /// \pre COUNTOF(ephemeralOtherPublicKey) == EphemeralPublicKeyLength() bool Agree(byte *agreedValue, const byte *staticPrivateKey, const byte *ephemeralPrivateKey, const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey, -- cgit v1.2.1