From bf10aae97d9178fe95c2f03be6abba0aa869e843 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 25 Dec 2018 20:24:54 -0500 Subject: Add additional asserts --- xed25519.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xed25519.h') 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. -- cgit v1.2.1