Renci.SshNet.Security.Cryptography.Ciphers.RsaCipher.Decrypt C# (CSharp) Method

Decrypt() public method

Decrypts the specified data.
Only block type 01 or 02 are supported. Thrown when decrypted block type is not supported.
public Decrypt ( byte data ) : byte[]
data byte The data.
return byte[]
        public override byte[] Decrypt(byte[] data)
        {
            return Decrypt(data, 0, data.Length);
        }

Same methods

RsaCipher::Decrypt ( byte data, int offset, int length ) : byte[]

Usage Example

Esempio n. 1
0
 public void DecryptTest()
 {
     RsaKey key = null; // TODO: Initialize to an appropriate value
     RsaCipher target = new RsaCipher(key); // TODO: Initialize to an appropriate value
     byte[] data = null; // TODO: Initialize to an appropriate value
     byte[] expected = null; // TODO: Initialize to an appropriate value
     byte[] actual;
     actual = target.Decrypt(data);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
All Usage Examples Of Renci.SshNet.Security.Cryptography.Ciphers.RsaCipher::Decrypt