-
Notifications
You must be signed in to change notification settings - Fork 164
Implement Keypair trait for the RSA keys #190
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 occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@lumag I'm confused why you need to change |
@tarcieri because I have to embed a |
@lumag I opened a tracking issue for problems with |
@tarcieri as a side note: |
The functions internal::decrypt(), internal::blind() and internal::unblind() are not used outside of the internal.rs. Stop marking them as public. Signed-off-by: Dmitry Baryshkov <[email protected]>
Define the PrivateKeyParts trait used to represent the RSA Private key interface. Signed-off-by: Dmitry Baryshkov <[email protected]>
Split private key components to a separate struct to allow reusing them for the SigningKey imlementations. Signed-off-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Dmitry Baryshkov <[email protected]>
Implement AsRef for SigningKey and BlindedSigningKey structures returning corresponding VerifyingKey. Signed-off-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Dmitry Baryshkov <[email protected]>
I have rebased this PR on top of RSA 0.7.0. Note, I had to disable |
@lumag PTAL at the It makes the This is a proposed breaking change which I think would help simplify this use case. |
This is rather intrusive implementation. It reworks the way
RsaPrivateKey
is organized. Unfortunately it also meant that defaultSerialize
anDeserilialize
derivations provide a list of tokens that are not backwards-compatible. Thus I had to implement those traits manually.