C# Class Renci.SshNet.Security.Cryptography.BlockCipher

Base class for block cipher implementations.
Inheritance: SymmetricCipher
Exibir arquivo Open project: sshnet/SSH.NET

Public Methods

Method Description
Decrypt ( byte data ) : byte[]

Decrypts the specified data.

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

Decrypts the specified input.

Encrypt ( byte data, int offset, int length ) : byte[]

Encrypts the specified data.

Protected Methods

Method Description
BlockCipher ( byte key, byte blockSize, CipherMode mode, CipherPadding padding ) : System

Initializes a new instance of the BlockCipher class.

Method Details

BlockCipher() protected method

Initializes a new instance of the BlockCipher class.
is null.
protected BlockCipher ( byte key, byte blockSize, CipherMode mode, CipherPadding padding ) : System
key byte The key.
blockSize byte Size of the block.
mode Renci.SshNet.Security.Cryptography.Ciphers.CipherMode Cipher mode.
padding Renci.SshNet.Security.Cryptography.Ciphers.CipherPadding Cipher padding.
return System

Decrypt() public method

Decrypts the specified data.
public Decrypt ( byte data ) : byte[]
data byte The data.
return byte[]

Decrypt() public method

Decrypts the specified input.
public Decrypt ( byte data, int offset, int length ) : byte[]
data byte The input.
offset int The zero-based offset in at which to begin decrypting.
length int The number of bytes to decrypt from .
return byte[]

Encrypt() public method

Encrypts the specified data.
public Encrypt ( byte data, int offset, int length ) : byte[]
data byte The data.
offset int The zero-based offset in at which to begin encrypting.
length int The number of bytes to encrypt from .
return byte[]