-
Notifications
You must be signed in to change notification settings - Fork 4
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
Changing DecryptPKIEnvelope/Success methods signature #13
Comments
Hey @dselyuzhitskiy, thank you for opening the issue. This seems reasonable, indeed. Instead of taking the |
Thanks for quick response @hslatman. I'm not an expert in crypto, but what non-RSA keys do you mean? May be i can try to found some solution for this |
@dselyuzhitskiy with the non-RSA keys I mean any object adhering to the |
Looks like we just need to cast crypto.PublicKey to rsa key, but give me some time to discover best solution |
Yes, should be just a matter of calling |
Read some RFC and yes, for encryption based on PasswordRecipientInfo we should provide other recipientInfo structure, parse tags and provide different Decryption method, so i think, for begin we could just check that key is rsa |
I've opened #14. You can give it a try 😄 |
Thanks a lot! |
Hello!
I'am trying to use scep library with external Decrypter/Signer. It is ok, because pkcs7.Decrypt could use privateKey as crypto.Decrypter interface, so i can use any implementation. But in scep library DecryptPKIEnvelope/Success use rsa.PrivateKey instead of interface, so i need to provide private key.
Could we change signature of DecryptPKIEnvelope/Success methods and instead of rsa.PrivateKey use crypto.PrivateKey from pkcs 7 lib?
The text was updated successfully, but these errors were encountered: