Class Cipher
- Namespace
- Renci.SshNet.Security.Cryptography
- Assembly
- Renci.SshNet.dll
Base class for cipher implementation.
public abstract class CipherInheritance
Derived
Inherited Members
Properties
MinimumSize
Gets the minimum data size.
public abstract byte MinimumSize { get; }Property Value
TagSize
Gets the size of the authentication tag for ciphers which implement Authenticated Encryption (AE).
public virtual int TagSize { get; }Property Value
Methods
Decrypt(byte[])
Decrypts the specified input.
public virtual byte[] Decrypt(byte[] input)Parameters
inputbyte[]-
The input.
Returns
- byte[]
-
The decrypted data.
Decrypt(byte[], int, int)
Decrypts the specified input.
public abstract byte[] Decrypt(byte[] input, int offset, int length)Parameters
inputbyte[]-
The input.
offsetint-
The zero-based offset in
inputat which to begin decrypting. lengthint-
The number of bytes to decrypt from
input.
Returns
- byte[]
-
The decrypted data.
Encrypt(byte[])
Encrypts the specified input.
public byte[] Encrypt(byte[] input)Parameters
inputbyte[]-
The input.
Returns
- byte[]
-
Encrypted data.
Encrypt(byte[], int, int)
Encrypts the specified input.
public abstract byte[] Encrypt(byte[] input, int offset, int length)Parameters
inputbyte[]-
The input.
offsetint-
The zero-based offset in
inputat which to begin encrypting. lengthint-
The number of bytes to encrypt from
input.
Returns
- byte[]
-
The encrypted data.