C# BouncyCastle RSA Encryption and Decryption
问题 There are many topics on RSA Encryption and Decryption using BouncyCastle, however I'm encountering some unexpected behaviour. I'm attempting to encrypt a 64 byte data blocking using a private key of size 64 bytes I compute the RSA Encryption as followings: public byte[] Encrypt(byte[] data, AsymmetricKeyParameter key) { var engine = new RsaEngine(); engine.Init(true, key); var blockSize = engine.GetInputBlockSize(); return engine.ProcessBlock(data, 0, blockSize ); } I compute the decryption