diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-13 20:34:39 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-13 20:34:39 -0500 |
commit | 6dc60888d9bb2878a54751b2500bd9147b9c688e (patch) | |
tree | 70ea1c62f44844cedc40fbc29e12ed6bfffa6fc5 /validat0.cpp | |
parent | 8c3432473b9cad297f179d324f0dc874406432f0 (diff) | |
download | cryptopp-git-6dc60888d9bb2878a54751b2500bd9147b9c688e.tar.gz |
Fix the cut-in of Moon's implementation (GH #761)
The initial cut-in was missing preamble present in Moon's curve25519_donna function. It originally tested good because we only perform a pairwise consistency check in release builds. Comprehensive testing with debug builds revealed the problem. Debug builds cross-validate against Bernstein's TweetNaCl library.
Diffstat (limited to 'validat0.cpp')
-rw-r--r-- | validat0.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/validat0.cpp b/validat0.cpp index 6155d97f..39431989 100644 --- a/validat0.cpp +++ b/validat0.cpp @@ -443,7 +443,7 @@ bool TestCurve25519() priv1[0] &= 248; priv1[31] &= 127; priv1[31] |= 64;
priv2[0] &= 248; priv2[31] &= 127; priv2[31] |= 64;
- // Langley's curve25519-donna
+ // Andrew Moon's curve25519-donna
Donna::curve25519(pub1, priv1);
Donna::curve25519(pub2, priv2);
|