I want to encrypt encrypted data I used RSA encrytion. But when I encrypt encrypted data by using another public key. The error is "Unspecified error"
I think the issue from key size.
My key size is 1024 bit.
brief source code :
First Step : encrypt data by using RSA Public Key with key size 1024 bit
byte encryptedData = RSAalg.Encrypt(dataToEncrypt, false);
Second Step : encrypt data by using another RSA Public Key with key size 1024 bit either
byte encryptedData1 = RSAalg1.Encrypt(encryptedData, false);
The error shows in second step. How can I fix this?