What is stranger is that the values contained in the 62 byte array equal the values of the 64 byte original array (pre encryption) however the decoded array is missing the first index of the original data and the final index. However when I decode the 64 byte array using a 64 byte public key I get back a data block of size 62 bytes. What I'm finding is that when I encrypt my 64 data using a 64 byte Private Key I get back a 64 byte encrypted dataBlock.
I compute the decryption using a public key as follows public byte Decrypt(byte data, AsymmetricKeyParameter key) Return engine.ProcessBlock(data, 0, blockSize ) Var blockSize = engine.GetInputBlockSize() I compute the RSA Encryption as followings: public byte Encrypt(byte data, AsymmetricKeyParameter key) I'm attempting to encrypt a 64 byte data blocking using a private key of size 64 bytes
There are many topics on RSA Encryption and Decryption using Bounc圜astle, however I'm encountering some unexpected behaviour.