Update documentation
parent
c3e0d123b2
commit
4e6dd922f7
12
fhmqv.h
12
fhmqv.h
|
|
@ -201,7 +201,7 @@ public:
|
||||||
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
|
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 agreedValue the shared secret
|
||||||
/// \param staticPrivateKey your long term private key
|
/// \param staticPrivateKey your long term private key
|
||||||
/// \param ephemeralPrivateKey your ephemeral private key
|
/// \param ephemeralPrivateKey your ephemeral private key
|
||||||
|
|
@ -216,11 +216,11 @@ public:
|
||||||
/// static public key is validated. If you have previously validated the
|
/// static public key is validated. If you have previously validated the
|
||||||
/// couterparty's static public key, then use
|
/// couterparty's static public key, then use
|
||||||
/// <tt>validateStaticOtherPublicKey=false</tt> to save time.
|
/// <tt>validateStaticOtherPublicKey=false</tt> to save time.
|
||||||
/// \pre size of agreedValue == AgreedValueLength()
|
/// \pre <tt>COUNTOF(agreedValue) == AgreedValueLength()
|
||||||
/// \pre length of staticPrivateKey == StaticPrivateKeyLength()
|
/// \pre <tt>COUNTOF(staticPrivateKey) == StaticPrivateKeyLength()</tt>
|
||||||
/// \pre length of ephemeralPrivateKey == EphemeralPrivateKeyLength()
|
/// \pre <tt>COUNTOF(ephemeralPrivateKey) == EphemeralPrivateKeyLength()</tt>
|
||||||
/// \pre length of staticOtherPublicKey == StaticPublicKeyLength()
|
/// \pre <tt>COUNTOF(staticOtherPublicKey) == StaticPublicKeyLength()</tt>
|
||||||
/// \pre length of ephemeralOtherPublicKey == EphemeralPublicKeyLength()
|
/// \pre <tt>COUNTOF(ephemeralOtherPublicKey) == EphemeralPublicKeyLength()</tt>
|
||||||
bool Agree(byte *agreedValue,
|
bool Agree(byte *agreedValue,
|
||||||
const byte *staticPrivateKey, const byte *ephemeralPrivateKey,
|
const byte *staticPrivateKey, const byte *ephemeralPrivateKey,
|
||||||
const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey,
|
const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey,
|
||||||
|
|
|
||||||
12
hmqv.h
12
hmqv.h
|
|
@ -200,7 +200,7 @@ public:
|
||||||
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
|
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 agreedValue the shared secret
|
||||||
/// \param staticPrivateKey your long term private key
|
/// \param staticPrivateKey your long term private key
|
||||||
/// \param ephemeralPrivateKey your ephemeral private key
|
/// \param ephemeralPrivateKey your ephemeral private key
|
||||||
|
|
@ -215,11 +215,11 @@ public:
|
||||||
/// static public key is validated. If you have previously validated the
|
/// static public key is validated. If you have previously validated the
|
||||||
/// couterparty's static public key, then use
|
/// couterparty's static public key, then use
|
||||||
/// <tt>validateStaticOtherPublicKey=false</tt> to save time.
|
/// <tt>validateStaticOtherPublicKey=false</tt> to save time.
|
||||||
/// \pre size of agreedValue == AgreedValueLength()
|
/// \pre <tt>COUNTOF(agreedValue) == AgreedValueLength()
|
||||||
/// \pre length of staticPrivateKey == StaticPrivateKeyLength()
|
/// \pre <tt>COUNTOF(staticPrivateKey) == StaticPrivateKeyLength()</tt>
|
||||||
/// \pre length of ephemeralPrivateKey == EphemeralPrivateKeyLength()
|
/// \pre <tt>COUNTOF(ephemeralPrivateKey) == EphemeralPrivateKeyLength()</tt>
|
||||||
/// \pre length of staticOtherPublicKey == StaticPublicKeyLength()
|
/// \pre <tt>COUNTOF(staticOtherPublicKey) == StaticPublicKeyLength()</tt>
|
||||||
/// \pre length of ephemeralOtherPublicKey == EphemeralPublicKeyLength()
|
/// \pre <tt>COUNTOF(ephemeralOtherPublicKey) == EphemeralPublicKeyLength()</tt>
|
||||||
bool Agree(byte *agreedValue,
|
bool Agree(byte *agreedValue,
|
||||||
const byte *staticPrivateKey, const byte *ephemeralPrivateKey,
|
const byte *staticPrivateKey, const byte *ephemeralPrivateKey,
|
||||||
const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey,
|
const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey,
|
||||||
|
|
|
||||||
12
mqv.h
12
mqv.h
|
|
@ -161,7 +161,7 @@ public:
|
||||||
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
|
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 agreedValue the shared secret
|
||||||
/// \param staticPrivateKey your long term private key
|
/// \param staticPrivateKey your long term private key
|
||||||
/// \param ephemeralPrivateKey your ephemeral private key
|
/// \param ephemeralPrivateKey your ephemeral private key
|
||||||
|
|
@ -176,11 +176,11 @@ public:
|
||||||
/// static public key is validated. If you have previously validated the
|
/// static public key is validated. If you have previously validated the
|
||||||
/// couterparty's static public key, then use
|
/// couterparty's static public key, then use
|
||||||
/// <tt>validateStaticOtherPublicKey=false</tt> to save time.
|
/// <tt>validateStaticOtherPublicKey=false</tt> to save time.
|
||||||
/// \pre size of agreedValue == AgreedValueLength()
|
/// \pre <tt>COUNTOF(agreedValue) == AgreedValueLength()
|
||||||
/// \pre length of staticPrivateKey == StaticPrivateKeyLength()
|
/// \pre <tt>COUNTOF(staticPrivateKey) == StaticPrivateKeyLength()</tt>
|
||||||
/// \pre length of ephemeralPrivateKey == EphemeralPrivateKeyLength()
|
/// \pre <tt>COUNTOF(ephemeralPrivateKey) == EphemeralPrivateKeyLength()</tt>
|
||||||
/// \pre length of staticOtherPublicKey == StaticPublicKeyLength()
|
/// \pre <tt>COUNTOF(staticOtherPublicKey) == StaticPublicKeyLength()</tt>
|
||||||
/// \pre length of ephemeralOtherPublicKey == EphemeralPublicKeyLength()
|
/// \pre <tt>COUNTOF(ephemeralOtherPublicKey) == EphemeralPublicKeyLength()</tt>
|
||||||
bool Agree(byte *agreedValue,
|
bool Agree(byte *agreedValue,
|
||||||
const byte *staticPrivateKey, const byte *ephemeralPrivateKey,
|
const byte *staticPrivateKey, const byte *ephemeralPrivateKey,
|
||||||
const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey,
|
const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue