Repository navigation
New P-384 implementation. - #247
Closed
briansmith wants to merge 34 commits into
Closed
briansmith wants to merge 34 commits into
briansmith wants to merge 34 commits into
Conversation
|
Coverage decreased (-0.7%) to 88.162% when pulling e8d1f8d884bfb7e12f3577e703153addc12963ef on p384 into 2a4ce0b on master. |
briansmith
force-pushed
the
p384
branch
4 times, most recently
from
July 12, 2016 06:18
8267d25 to
74b3bf0
Compare
|
Coverage decreased (-0.8%) to 88.06% when pulling 74b3bf0fc5d82834bb079b7f502ca1c35df8114e on p384 into 9a468a7 on master. |
|
Coverage decreased (-0.2%) to 88.584% when pulling e29b9f4bd50b45aa0612c669fc720a1eb47d1ffc on p384 into 9a468a7 on master. |
|
Coverage decreased (-0.08%) to 88.715% when pulling 3315223e79e2554bc96773f161ccf9c1914d87b8 on p384 into 690ca69 on master. |
briansmith
force-pushed
the
p384
branch
2 times, most recently
from
July 14, 2016 09:33
30ffd08 to
afe2fe8
Compare
Factor out a `static inline` version for use by future additions to this file.
Repeated addition is faster than Montgomery multiplication.
Boostrap the new P-384 implementation of group operations using the C reference implementation of the nistz256 operations from Intel. This code isn't built yet. The bridge between gfp_p384 and ecp_nistz384 will follow in upcoming commits.
First, the code was reformatted using ClangFormat. The old formatting of the point-at-infinity checks was restored since it is clearer. Also, Add braces around if statement.
Because ECDSA verification is a variable-time operation, benchmarking it is tricky. For now, add some questionable benchmarks here. Once we find a better set of input vectors (e.g. ones that result in a variety of Booth and wNAF recodings), we'll move these benchmarks to crypto-bench.
For P-256, this is equivalent algorithmically. For P-384, this is a worse algorithm, but the faster implementations of point addition and point doubling make it not too much worse. We'll have to improve it in the near future.
Owner
Author
|
I think I fixed all the nits. This landed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The primary goal of this implementation is to reduce the variance between the P-384 and P-256 implementations so that analysis of one is more likely to apply to the other, and so that we can handle everything (e.g. the special form of the point at infinity in nistz256) uniformly. The secondary goal is to remove usage of the heap, which means removing dependencies on
BIGNUM,EC_POINT, etc. The tertiary goal is to improve the side channel protection, particularly protection against timing attacks. The final goal is to improve performance significantly.