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

Base class for block cipher implementations.
Inheritance: SymmetricCipher
Afficher le fichier Open project: sshnet/SSH.NET

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
BlockCipher ( byte key, byte blockSize, CipherMode mode, CipherPadding padding ) : System

Initializes a new instance of the BlockCipher class.

Method Details

BlockCipher() protected méthode

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.
Résultat System

Decrypt() public méthode

Decrypts the specified data.
public Decrypt ( byte data ) : byte[]
data byte The data.
Résultat byte[]

Decrypt() public méthode

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 .
Résultat byte[]

Encrypt() public méthode

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 .
Résultat byte[]