forge icon indicating copy to clipboard operation
forge copied to clipboard

Can forge decrypt RSA/ECB/PKCS1Padding with public key?

Open ssaguiar opened this issue 3 years ago • 1 comments

I have a RSA (RSA/ECB/PKCS1Padding) buffer content which must be decrypted using a public key, generating a key. This will produce the key I will need to decrypt another buffer using the AES/CBC/PKCSSPadding and an IV.

So, I will need to decrypt the first buffer using RSA and a public key to generate the key to decrypt another buffer using AES and anIV wch is in another buffer.

This is how data is present in main buffer:

main buffer bytes:

0 255 ENCRYPTED_LICENSE_KEY 256 271 IV 272 END ENCRYPTED_LICENSE_BODY

LICENSE_KEY = ENCRYPTED_LICENSE_KEY decrypted with public key (RSA/ECB/PKCS1Padding)

LICENSE_BODY = ENCRYPTED_LICENSE_BODY decrypted with LICENSE_KEY & IV (AES/CBC/PKCS5Padding)

Can this be done with forge?

Thanks very much for any help

ssaguiar avatar May 08 '21 13:05 ssaguiar

simply put , no.

b1ghawk avatar Nov 15 '23 06:11 b1ghawk