Skip to content
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

how about OAEPWithSHA1AndMGF1Padding? #31

Open
aetsyss opened this issue Nov 6, 2015 · 1 comment
Open

how about OAEPWithSHA1AndMGF1Padding? #31

aetsyss opened this issue Nov 6, 2015 · 1 comment

Comments

@aetsyss
Copy link

aetsyss commented Nov 6, 2015

Hi!
Is it possible to decode / encode data with OAEPWithSHA1AndMGF1Padding?

@hohl
Copy link
Owner

hohl commented Nov 6, 2015

I'm sorry, I never tried/needed OAEPWithSHA1AndMGF1Padding. However MIHRSAPrivateKey and MIHRSAPublicKey have a property called rsaPadding (of type int) which just stores the padding flag for OpenSSL. You can try to set it to OAEPWithSHA1AndMGF1Padding and verify the output against some known implementation.

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

2 participants