I don't want to utilize RSaCryptoProvider available in .NET to encrypt data.
I would like to encrypt data using the RSA keys, allowing me to send a message to Alice using his public-signature and allowing Alice decrypt it using its private one.
My problem is focused in an application which people can select the symetric algorithm to encrypt the data (among many of them), not only 3DES, AES... I mean, algorithms not provided neither by RSACryptoProvider nor DSACryptoProvider.
1) So, I understand I have to get RSA parameters D, Q, p, n to create the "secret-key" which allow me to encrypt/decrypt data in my symmetric algorithm. Is it correct?
2) Supposing I have a number to work, based on the RSA formula (C = M^e mod n and D= C^d mod n) what exactly is M and C: a byte, a word, a double-word?
3) To make my job easier, I think to utilize a padding schema (like PKCS#1). In this case, the above question should be automatically answered? Is PKCS#1 matching the necessary lenght to operate with RSA formulas?
In fact, I would like to utilize RSA keys to provide a symetric encryption in a true manual way.
I will appreciate any help.