summaryrefslogtreecommitdiff
path: root/xed25519.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-13 16:16:40 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-13 16:16:40 -0500
commit83ddeadb650a293b8c430e834094fc4564a6c703 (patch)
tree1309882bce950743c07f7a244096accd071d0843 /xed25519.h
parentb19abcde1f11eec119d1fe8741409c0305cdd954 (diff)
downloadcryptopp-git-83ddeadb650a293b8c430e834094fc4564a6c703.tar.gz
Make clamped and small order tests static class members
Diffstat (limited to 'xed25519.h')
-rw-r--r--xed25519.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/xed25519.h b/xed25519.h
index c73a59a6..af93a572 100644
--- a/xed25519.h
+++ b/xed25519.h
@@ -21,6 +21,18 @@ class Integer;
class x25519 : public SimpleKeyAgreementDomain, public CryptoParameters
{
public:
+ /// \brief Test if a key is clamped
+ /// \param x private key
+ static bool IsClamped(const byte x[32]);
+
+ /// \brief Test if a key has small order
+ /// \param y public key
+ static bool IsSmallOrder(const byte y[32]);
+
+ /// \brief Test if a key is clamped
+ /// \param x private key
+ static void ClampKey(byte x[32]);
+
/// \brief Create a x25519 object
/// \param y public key
/// \param x private key