Skip to content

Implement RSA signing in Rust. - #394

Closed
briansmith wants to merge 10 commits into
rsa-public-expfrom
rsa-private-transform
Closed

briansmith wants to merge 10 commits into
rsa-public-expfrom
rsa-private-transform

Conversation

@briansmith

Copy link
Copy Markdown
Owner

No description provided.

@briansmith briansmith added this to the 0.6.n milestone Dec 25, 2016
@briansmith briansmith self-assigned this Dec 25, 2016
@briansmith
briansmith changed the base branch from master to rsa-public-exp December 25, 2016 08:01
@coveralls

coveralls commented Dec 26, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 93.154% when pulling f405852bf24a6370d9f27b5ffd6e6157a6ac0dc2 on rsa-private-transform into 5b3a021 on rsa-public-exp.

@briansmith
briansmith force-pushed the rsa-private-transform branch from f405852 to 61aec3b Compare December 27, 2016 11:20
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 93.152% when pulling 61aec3b on rsa-private-transform into 5b3a021 on rsa-public-exp.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 93.152% when pulling 61aec3b on rsa-private-transform into 5b3a021 on rsa-public-exp.

@briansmith

Copy link
Copy Markdown
Owner Author

@ranweiler I'm curious if I've got the terminology right this time in f684da8. Let me know if you see something wrong or that can otherwise be improved (disregarding the copyright line typo.)

@ranweiler

Copy link
Copy Markdown
Contributor

@briansmith looks good overall, I suggested some minor tweaks.

@briansmith

Copy link
Copy Markdown
Owner Author

@ranweiler Thanks for looking at that (busted) commit! I fixed the wording issues you mentioned and hopefully I didn't introduce new ones.

@coveralls

coveralls commented Jan 1, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 93.47% when pulling c0600e8 on rsa-private-transform into 58bb5ec on rsa-public-exp.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 93.47% when pulling c0600e8 on rsa-private-transform into 58bb5ec on rsa-public-exp.

These aren't just useful for finite fields over primes GFp. They can
be used for arithmetic in the ring Z/Zn where n isn't prime, as is
the case for RSA arithmetic modulo the public modulus `n`.

Now it is clear now that we're not going to need to disambiguate the
types in this module with other libraries' types, so remove the `GFp_`
prefixes.
These operations will be used not just for finite fields over primes
but also for Z/Zn.
The added reduction isn't necessary, but this is the last non-modular arithmetic in
*ring*'s RSA implementation.
@briansmith
briansmith force-pushed the rsa-private-transform branch from fdd61a7 to 368279f Compare January 2, 2017 06:14
@briansmith

Copy link
Copy Markdown
Owner Author

Landed as:

dabde02 Use standard names for RSA private key fields.
7dcaddf Give GFp_* modular arithmetic primitives more general names.
6822329 Use limb_ and limbs_ instead of gfp_ for low-level limb ops.
1b07946 Restore GFp_BN_mod_add_quick and use it in RSA CRT.
13a77c9 Use GFp_BN_ucmp instead of GFp_BN_cmp in ring::rsa::bigint.
9ecabeb Don't call the integers modulo the composite public modulus Fields.
1dee59d Clarify README.
aae0a36 Update the creation myth in README.md.
368279f Implement RSA signing using the CRT using Rust.

@briansmith briansmith closed this Jan 2, 2017
@briansmith
briansmith deleted the rsa-private-transform branch February 16, 2017 22:05
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.

3 participants