Hi,

 

I'm trying to get the same result with the c# RSACryptoServiceProvider
class  that 'openssl.exe rsautl ' gives me.

The c# class wants more properties set before you can encrypt a message.

 

How can I obtain the parameters that 'openssl.exe rsautl' implements.
For example the exponent, q parameters, p parameters, dp, dq parameters,
etc. These are optional arguments for the c# class.

Ex. Exponent = {1,0,1}

 

One more note: my publickey.pem is 392 bytes

 

Here is what I'm passing in:

> openssl.exe rsautl -encrypt -inkey dir\\public.pem -pubin -in filename
-out encryptedfilename

 

Reply via email to