diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-25 20:24:54 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-25 20:24:54 -0500 |
commit | bf10aae97d9178fe95c2f03be6abba0aa869e843 (patch) | |
tree | de5adea9c73379e35e85f73f42825f66bafefb6d /xed25519.h | |
parent | 6e09f4ee1934d05f30140f07966abb78174dec3f (diff) | |
download | cryptopp-git-bf10aae97d9178fe95c2f03be6abba0aa869e843.tar.gz |
Add additional asserts
Diffstat (limited to 'xed25519.h')
-rw-r--r-- | xed25519.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -450,6 +450,10 @@ struct ed25519PrivateKey : public PKCS8PrivateKey /// \param x private key
bool IsClamped(const byte x[SECRET_KEYLENGTH]) const;
+ /// \brief Test if a key has small order
+ /// \param y public key
+ bool IsSmallOrder(const byte y[PUBLIC_KEYLENGTH]) const;
+
/// \brief Retrieve private key byte array
/// \returns the private key byte array
/// \details GetPrivateKeyBytePtr() is used by signing code to call ed25519_sign.
|