8000 RSA + primes · Issue #2 · jordanpublicc/flat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RSA + primes #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasion 8C6B ally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
jordanpublicc opened this issue Apr 24, 2025 · 0 comments
Open
3 tasks done

RSA + primes #2

jordanpublicc opened this issue Apr 24, 2025 · 0 comments

Comments

@jordanpublicc
Copy link
Owner

Fixes #
The init(keySize:Int) method now throws, introducing a breaking change from the previous implementation. The previous initializer assumed the BigInt inverse operation would never result in nil (and it shouldn't) but if it ever did, you'd get back a public key instead of a private key (which is sort of confusing).

Checklist:

  • Correct file headers (see CONTRIBUTING.md).
  • Formatted with SwiftFormat.
  • Tests updated.

Changes proposed in this pull request:

  • Added an optional private primes constant that holds on to the primes (p & q) that are used to generate the RSA key's private exponent. This is an important first step to being able to support DER and PEM importing and exporting as they both require the primes to be bundled within the Private key's DER format.
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

No branches or pull requests

1 participant
0