You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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.
The text was updated successfully, but these errors were encountered:
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:
Changes proposed in this pull request:
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.The text was updated successfully, but these errors were encountered: