[dev-crypto-csharp] Problems with the RSA decrypt: input data too large

2020-09-05 Thread Herbert Falk
I have public and private key information from a self-signed certificate. I extract the RSA parameters using Microsoft cypto and then pass it to the code in the following function: byte[] retValue = null; byte[] encrypted = null; IAsymmetricBlockCipher cipher = new Pkcs1

RE: [dev-crypto-csharp] Problems with the RSA decrypt: input data too large

2020-09-05 Thread Jim Schaad
Check to see if one of the items is zero prefixed. Msft requires that all of the parameters be of the correct length but other libraries want to have unsigned numbers, thus the zero prefix. From: Herbert Falk Sent: Saturday, September 5, 2020 12:30 PM To: dev-crypto-csharp@bouncycastle.org S