summaryrefslogtreecommitdiff
path: root/xed25519.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-25 20:24:54 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-25 20:24:54 -0500
commitbf10aae97d9178fe95c2f03be6abba0aa869e843 (patch)
treede5adea9c73379e35e85f73f42825f66bafefb6d /xed25519.h
parent6e09f4ee1934d05f30140f07966abb78174dec3f (diff)
downloadcryptopp-git-bf10aae97d9178fe95c2f03be6abba0aa869e843.tar.gz
Add additional asserts
Diffstat (limited to 'xed25519.h')
-rw-r--r--xed25519.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xed25519.h b/xed25519.h
index 3cbc80c5..354d49ae 100644
--- a/xed25519.h
+++ b/xed25519.h
@@ -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.