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

add possibility to use different hash algorithms in RSAES-OAEP #87

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

timlegge
Copy link
Contributor

Requires changes from libtom libtom/libtomcrypt#612

@timlegge
Copy link
Contributor Author

I don't mind adding the required libtom to the PR but I figured that you would have more expertise in that process

@@ -295,10 +295,10 @@ export_key_der(Crypt::PK::RSA self, char * type)
RETVAL

SV *
encrypt(Crypt::PK::RSA self, SV * data, const char * padding = "oaep", const char * oaep_hash = "SHA1", SV * oaep_lparam = NULL)
encrypt(Crypt::PK::RSA self, SV * data, const char * padding = "oaep", const char * mgf_hash = "SHA1", const char * lparam_hash = "SHA1", SV * oaep_lparam = NULL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const char * lparam_hash = "SHA1" should be added as the last parameter with default set to mfg_hash value otherwise it will break compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

It probably needs some pod updates at

=head2 decrypt
and the Encrypt. I can take a try at documenting it if you would like.

@karel-m karel-m merged commit b881684 into DCIT:master Oct 9, 2023
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

Successfully merging this pull request may close these issues.

2 participants