C# Класс Renci.SshNet.Security.Cryptography.Cipher

Base class for cipher implementation.
Показать файл Открыть проект

Открытые методы

Метод Описание
Decrypt ( byte input ) : byte[]

Decrypts the specified input.

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

Decrypts the specified input.

Encrypt ( byte input ) : byte[]

Encrypts the specified input.

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

Encrypts the specified input.

Защищенные методы

Метод Описание
BigEndianToUInt32 ( byte buffer ) : uint

Converts big endian bytes into number.

BigEndianToUInt32 ( byte buffer, int offset ) : uint

Converts big endian bytes into number.

BigEndianToUInt64 ( byte buffer ) : ulong

Converts big endian bytes into number.

BigEndianToUInt64 ( byte buffer, int offset ) : ulong

Converts big endian bytes into number.

LittleEndianToUInt32 ( byte buffer ) : uint

Converts little endian bytes into number.

LittleEndianToUInt32 ( byte buffer, int offset ) : uint

Converts little endian bytes into number.

LittleEndianToUInt64 ( byte buffer ) : ulong

Converts little endian bytes into number.

LittleEndianToUInt64 ( byte buffer, int offset ) : ulong

Converts little endian bytes into number.

UInt32ToBigEndian ( uint number, byte buffer ) : void

Populates buffer with big endian number representation.

UInt32ToBigEndian ( uint number, byte buffer, int offset ) : void

Populates buffer with big endian number representation.

UInt32ToLittleEndian ( uint number, byte buffer ) : void

Populates buffer with little endian number representation.

UInt32ToLittleEndian ( uint number, byte buffer, int offset ) : void

Populates buffer with little endian number representation.

UInt64ToBigEndian ( ulong number, byte buffer ) : void

Populates buffer with big endian number representation.

UInt64ToBigEndian ( ulong number, byte buffer, int offset ) : void

Populates buffer with big endian number representation.

UInt64ToLittleEndian ( ulong number, byte buffer ) : void

Populates buffer with little endian number representation.

UInt64ToLittleEndian ( ulong number, byte buffer, int offset ) : void

Populates buffer with little endian number representation.

Описание методов

BigEndianToUInt32() защищенный статический Метод

Converts big endian bytes into number.
protected static BigEndianToUInt32 ( byte buffer ) : uint
buffer byte The buffer.
Результат uint

BigEndianToUInt32() защищенный статический Метод

Converts big endian bytes into number.
protected static BigEndianToUInt32 ( byte buffer, int offset ) : uint
buffer byte The buffer.
offset int The buffer offset.
Результат uint

BigEndianToUInt64() защищенный статический Метод

Converts big endian bytes into number.
protected static BigEndianToUInt64 ( byte buffer ) : ulong
buffer byte The buffer.
Результат ulong

BigEndianToUInt64() защищенный статический Метод

Converts big endian bytes into number.
protected static BigEndianToUInt64 ( byte buffer, int offset ) : ulong
buffer byte The buffer.
offset int The buffer offset.
Результат ulong

Decrypt() публичный абстрактный Метод

Decrypts the specified input.
public abstract Decrypt ( byte input ) : byte[]
input byte The input.
Результат byte[]

Decrypt() публичный абстрактный Метод

Decrypts the specified input.
public abstract Decrypt ( byte input, int offset, int length ) : byte[]
input byte The input.
offset int The zero-based offset in at which to begin decrypting.
length int The number of bytes to decrypt from .
Результат byte[]

Encrypt() публичный Метод

Encrypts the specified input.
public Encrypt ( byte input ) : byte[]
input byte The input.
Результат byte[]

Encrypt() публичный абстрактный Метод

Encrypts the specified input.
public abstract Encrypt ( byte input, int offset, int length ) : byte[]
input byte The input.
offset int The zero-based offset in at which to begin encrypting.
length int The number of bytes to encrypt from .
Результат byte[]

LittleEndianToUInt32() защищенный статический Метод

Converts little endian bytes into number.
protected static LittleEndianToUInt32 ( byte buffer ) : uint
buffer byte The buffer.
Результат uint

LittleEndianToUInt32() защищенный статический Метод

Converts little endian bytes into number.
protected static LittleEndianToUInt32 ( byte buffer, int offset ) : uint
buffer byte The buffer.
offset int The buffer offset.
Результат uint

LittleEndianToUInt64() защищенный статический Метод

Converts little endian bytes into number.
protected static LittleEndianToUInt64 ( byte buffer ) : ulong
buffer byte The buffer.
Результат ulong

LittleEndianToUInt64() защищенный статический Метод

Converts little endian bytes into number.
protected static LittleEndianToUInt64 ( byte buffer, int offset ) : ulong
buffer byte The buffer.
offset int The buffer offset.
Результат ulong

UInt32ToBigEndian() защищенный статический Метод

Populates buffer with big endian number representation.
protected static UInt32ToBigEndian ( uint number, byte buffer ) : void
number uint The number to convert.
buffer byte The buffer.
Результат void

UInt32ToBigEndian() защищенный статический Метод

Populates buffer with big endian number representation.
protected static UInt32ToBigEndian ( uint number, byte buffer, int offset ) : void
number uint The number to convert.
buffer byte The buffer.
offset int The buffer offset.
Результат void

UInt32ToLittleEndian() защищенный статический Метод

Populates buffer with little endian number representation.
protected static UInt32ToLittleEndian ( uint number, byte buffer ) : void
number uint The number to convert.
buffer byte The buffer.
Результат void

UInt32ToLittleEndian() защищенный статический Метод

Populates buffer with little endian number representation.
protected static UInt32ToLittleEndian ( uint number, byte buffer, int offset ) : void
number uint The number to convert.
buffer byte The buffer.
offset int The buffer offset.
Результат void

UInt64ToBigEndian() защищенный статический Метод

Populates buffer with big endian number representation.
protected static UInt64ToBigEndian ( ulong number, byte buffer ) : void
number ulong The number to convert.
buffer byte The buffer.
Результат void

UInt64ToBigEndian() защищенный статический Метод

Populates buffer with big endian number representation.
protected static UInt64ToBigEndian ( ulong number, byte buffer, int offset ) : void
number ulong The number to convert.
buffer byte The buffer.
offset int The buffer offset.
Результат void

UInt64ToLittleEndian() защищенный статический Метод

Populates buffer with little endian number representation.
protected static UInt64ToLittleEndian ( ulong number, byte buffer ) : void
number ulong The number to convert.
buffer byte The buffer.
Результат void

UInt64ToLittleEndian() защищенный статический Метод

Populates buffer with little endian number representation.
protected static UInt64ToLittleEndian ( ulong number, byte buffer, int offset ) : void
number ulong The number to convert.
buffer byte The buffer.
offset int The buffer offset.
Результат void