diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-13 16:16:40 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-13 16:16:40 -0500 |
commit | 83ddeadb650a293b8c430e834094fc4564a6c703 (patch) | |
tree | 1309882bce950743c07f7a244096accd071d0843 /xed25519.h | |
parent | b19abcde1f11eec119d1fe8741409c0305cdd954 (diff) | |
download | cryptopp-git-83ddeadb650a293b8c430e834094fc4564a6c703.tar.gz |
Make clamped and small order tests static class members
Diffstat (limited to 'xed25519.h')
-rw-r--r-- | xed25519.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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
|