namespace Renci.SshNet.Security.Cryptography { /// /// Base class for cipher implementation. /// public abstract class Cipher { /// /// Gets the minimum data size. /// /// /// The minimum data size. /// public abstract byte MinimumSize { get; } /// /// Encrypts the specified input. /// /// The input. /// Encrypted data. public byte[] Encrypt(byte[] input) { return Encrypt(input, 0, input.Length); } /// /// Encrypts the specified input. /// /// The input. /// The zero-based offset in at which to begin encrypting. /// The number of bytes to encrypt from . /// /// The encrypted data. /// public abstract byte[] Encrypt(byte[] input, int offset, int length); /// /// Decrypts the specified input. /// /// The input. /// /// The decrypted data. /// public abstract byte[] Decrypt(byte[] input); /// /// Decrypts the specified input. /// /// The input. /// The zero-based offset in at which to begin decrypting. /// The number of bytes to decrypt from . /// /// The decrypted data. /// public abstract byte[] Decrypt(byte[] input, int offset, int length); } }