diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-12 10:48:53 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-12 10:48:53 -0500 |
commit | a09d4024b73ca2d6d592ae8b34e79c900fee6e97 (patch) | |
tree | af404045a460adba6a125701cdece2ab76ac59d8 /xed25519.cpp | |
parent | 220ae9b91455de3d7530ba5d938cb2a50f1b1828 (diff) | |
download | cryptopp-git-a09d4024b73ca2d6d592ae8b34e79c900fee6e97.tar.gz |
Perform both is_clamped and is_small_order at level 2 validation
Diffstat (limited to 'xed25519.cpp')
-rw-r--r-- | xed25519.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xed25519.cpp b/xed25519.cpp index f00347f3..3ac6d615 100644 --- a/xed25519.cpp +++ b/xed25519.cpp @@ -185,7 +185,7 @@ bool x25519::Validate(RandomNumberGenerator &rng, unsigned int level) const if (level >= 1 && is_clamped(m_sk) == 0)
return false;
- else if (level >= 2 && is_small_order(m_pk) != 0)
+ if (level >= 2 && is_small_order(m_pk) != 0)
return false;
return true;
|