Skip to content

New P-384 implementation. - #247

Closed
briansmith wants to merge 34 commits into
masterfrom
p384
Closed

briansmith wants to merge 34 commits into
masterfrom
p384

Conversation

@briansmith

Copy link
Copy Markdown
Owner

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.

@coveralls

coveralls commented Jul 10, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 88.162% when pulling e8d1f8d884bfb7e12f3577e703153addc12963ef on p384 into 2a4ce0b on master.

@briansmith
briansmith force-pushed the p384 branch 4 times, most recently from 8267d25 to 74b3bf0 Compare July 12, 2016 06:18
@coveralls

coveralls commented Jul 12, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.8%) to 88.06% when pulling 74b3bf0fc5d82834bb079b7f502ca1c35df8114e on p384 into 9a468a7 on master.

@coveralls

coveralls commented Jul 12, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.2%) to 88.584% when pulling e29b9f4bd50b45aa0612c669fc720a1eb47d1ffc on p384 into 9a468a7 on master.

@coveralls

coveralls commented Jul 13, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.08%) to 88.715% when pulling 3315223e79e2554bc96773f161ccf9c1914d87b8 on p384 into 690ca69 on master.

@coveralls

coveralls commented Jul 14, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.06%) to 88.762% when pulling afe2fe8 on p384 into 14f4db5 on master.

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.
@coveralls

coveralls commented Jul 24, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 88.806% when pulling aa521bc on p384 into aef1693 on master.

@briansmith

Copy link
Copy Markdown
Owner Author

I think I fixed all the nits. This landed.

@briansmith briansmith closed this Jul 24, 2016
@briansmith
briansmith deleted the p384 branch July 24, 2016 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants