Commit Graph

22 Commits (4caa5ee724d33b31e9cb7d57964b461ecec76c5a)

Author SHA1 Message Date
Jeffrey Walton 4caa5ee724
Add SecretToPublicKey function for ed25519
Also remove IsClamped. Clamping occurs with ed25519, but it happens inside the Donna code. It is not needed elsewhere for ed25519.
2019-02-07 15:00:00 -05:00
Jeffrey Walton dde43de786
Use SECRET_KEYLENGTH for ed25519PrivateKey::GenerateRandom 2019-02-06 19:20:48 -05:00
Jeffrey Walton 6d339011a8
Remove /openmp from cryptest.nmake
This has cross-pollinated twice in two days
2019-01-22 05:11:50 -05:00
Jeffrey Walton c22f37f051
Clear unused variable warning on AIX 2019-01-22 02:35:25 -05:00
Jeffrey Walton 0c658f5a7c
PublicKey is optional for curve25519 2018-12-26 20:35:49 -05:00
Jeffrey Walton d5338fd212
Remove unneeded buf compare 2018-12-26 19:55:12 -05:00
Jeffrey Walton 1fc26dc14c
Cleanup Validate tests 2018-12-26 19:50:51 -05:00
Jeffrey Walton 5202b6312f
Add ed25519PrivateKey::Validate body (GH #764)
We also clamp the private key and recalculate the public key. Note: we already know some IETF keys fail to validate because they are not clamped as specified in Bernsteain's paper or the RFCs (derp....)
2018-12-26 19:34:41 -05:00
Jeffrey Walton bf10aae97d
Add additional asserts 2018-12-25 20:24:54 -05:00
Jeffrey Walton 3b18e81bc1
Remove unneeded ed25519Verifier code
Add accessors for public and private key
2018-12-25 07:38:30 -05:00
Jeffrey Walton 416db72f2c
Update documentation 2018-12-25 06:41:51 -05:00
Jeffrey Walton 5cbc6710d7
Clear unused variable warning 2018-12-25 05:49:43 -05:00
Jeffrey Walton d62674b561
Add ed25519 (GH #764, PR #767)
Add ed25519
2018-12-24 17:17:32 -05:00
Jeffrey Walton 00f777661d
Update comments and documentation 2018-12-14 04:35:07 -05:00
Jeffrey Walton 83ddeadb65
Make clamped and small order tests static class members 2018-12-13 16:16:40 -05:00
Jeffrey Walton 20f4d22055
Fix compile on 32-bit MIPS (GH #761)
Testing on a ci20 dev-board with Debian 5 and GCC 4
2018-12-13 04:21:38 -05:00
Jeffrey Walton 0bdacf1496
Fix missing semi-colon in non-ASM path 2018-12-13 03:39:01 -05:00
Jeffrey Walton a09d4024b7
Perform both is_clamped and is_small_order at level 2 validation 2018-12-12 10:48:53 -05:00
Jeffrey Walton e97d6d0ff5
Fix failed self test when NO_OS_DEPENDENCE (GH #761)
Add is_clamped for secret key validation.

Cleanup paramter names in Donna::curve25519 to follow function.

Overload Donna::curve25519 to implicitly use base point if not provided.

Add additional asserts to let the code debug itself.

Update documentation.
2018-12-12 03:56:09 -05:00
Jeffrey Walton 34d42b6998
Cut-in x25519 weak points and validation 2018-12-11 18:26:44 -05:00
Jeffrey Walton 20fce33449
Update documentation 2018-12-11 17:32:28 -05:00
Jeffrey Walton 77923a291a
Add Langley's curve25519 (GH #761, PR# 762) 2018-12-11 16:17:56 -05:00