Java interoperability

View: New views
2 Messages — Rating Filter:   Alert me  

Java interoperability

by Paul-417 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I need to decrypt a string encrypted by an external company in java as
follows using our public key -

Cipher cipher = Cipher.getInstance( "RSA/ECB/PKCS1Padding", "BC");

How would I decrypt the resulting message using our private key in
Crypto++?

I have tried using RSAES_PKCS1v15_Decryptor  which doesn't work,
presumably because I am missing the ECB part?

If the RSA/ECB/PKCS1 combination cannot be dealt with, is there an
alternative java combination I can suggest (RSA/ECB/NoPadding?) and
what would the equivalent Crypto++ Decryptor look like?.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---


Re: Java interoperability

by Paul-417 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I got this working by changing the java end to use RSA/NONE/
PKCS1Padding.
This works with the RSAES_PKCS1v15_Decryptor

On Aug 14, 9:36 am, Paul <paul.do...@...> wrote:

> I need to decrypt a string encrypted by an external company in java as
> follows using our public key -
>
> Cipher cipher = Cipher.getInstance( "RSA/ECB/PKCS1Padding", "BC");
>
> How would I decrypt the resulting message using our private key in
> Crypto++?
>
> I have tried using RSAES_PKCS1v15_Decryptor  which doesn't work,
> presumably because I am missing the ECB part?
>
> If the RSA/ECB/PKCS1 combination cannot be dealt with, is there an
> alternative java combination I can suggest (RSA/ECB/NoPadding?) and
> what would the equivalent Crypto++ Decryptor look like?.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---