-
Notifications
You must be signed in to change notification settings - Fork 182
Java RSA compatibility #104
Comments
Your code snippet seems legit. Try to remove leading
SHA-256 for both hashing and MGF. |
I've tried with and without it - the same. I've tried the following:
And it worked.
By default Java supports the following RSA algorithms:
So, now the question is, is there possibility to configure MGF in JS library? And could you point, where is it performed? |
SO, proceeding with some tests, I've got it working:
And Java:
The problem is that by default "RSA/ECB/OAEPWithSHA-256AndMGF1Padding" algorithm is using SHA-1 For MGF1, regardless that SHA-256 is provided for hashing. So, it would be nice to have ability to config Hash for MGF separately. |
I want to encrypt using RSA_OAEP_SHA256 on JavaScript side
Do you know the solution or any example that would help? |
Hi. I am trying to implement Javascript encryption and Java decryption system.
Javascript part:
Java part:
Key exchange: Key was generated and stored in the keystore. Java loads it directly from it.
Next key was extracted to .pem file:
So, when trying to do so, I get:
So the questions are:
The text was updated successfully, but these errors were encountered: