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

update README.md: fixing incompatibility with Java #205

Closed
wants to merge 1 commit into from
Closed

update README.md: fixing incompatibility with Java #205

wants to merge 1 commit into from

Conversation

ttruderung
Copy link
Contributor

Hi,

The example of RSA-OAEP encryption/decryption with SHA-256 and MGF1-SHA1 is not compatible with Java's RSA/ECB/OAEPWithSHA-256AndMGF1Padding (although this is claimed in the commend), at least for the BC provider (I have not checked it with any other providers).

When changed to MGF1-SHA256, it becomes compatible with RSA/ECB/OAEPWithSHA-256AndMGF1Padding (with BC), as claimed.

The example of RSA-OAEP encryption/decryption with SHA-256 and MGF1 padding is now compatible with Java (with the BC provider), as stated in the comment
@dlongley
Copy link
Member

dlongley commented Apr 6, 2015

I believe that there's an incompatibility between the BC provider and SunJCE in this case. The README should actually be updated to show how to use both and indicate which example to use with which provider. The original example works with SunJCE (at least I believe it was SunJCE that was used originally), and I assume your example works with BC.

Sorry for the slow response!

@zarfide
Copy link

zarfide commented Mar 8, 2017

I happened to stumble over this thread while looking at JCE/BC interop issues -- they are compatible but JCE requires some extra parameters -- see the updated BC thread. Just FYI.

Copy link

@williamdes williamdes left a comment

Choose a reason for hiding this comment

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

Thanks !!

@davidlehn davidlehn deleted the branch digitalbazaar:master January 5, 2022 00:34
@davidlehn davidlehn closed this Jan 5, 2022
davidlehn added a commit that referenced this pull request Jan 5, 2022
- Add examples for a compatibility issue.
- See #205.
@davidlehn
Copy link
Member

Sorry, this got auto-closed due to branch rename. See #936.

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.

None yet

5 participants