C# Класс NScumm.MD5

Наследование: IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
HashSizeValue int
HashValue byte[]
State int

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

Метод Описание
Clear ( ) : void
ComputeHash ( Stream inputStream ) : byte[]
ComputeHash ( byte buffer ) : byte[]
ComputeHash ( byte buffer, int offset, int count ) : byte[]
Create ( ) : MD5
Create ( string hashName ) : MD5
Dispose ( ) : void
Initialize ( ) : void

MD5 initialization. Begins an MD5 operation, writing a new context.

The RFC named it "MD5Init"

TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]

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

Метод Описание
Dispose ( bool disposing ) : void
HashCore ( byte input, int offset, int count ) : void

MD5 block update operation. Continues an MD5 message-digest operation, processing another message block, and updating the context.

The RFC Named it MD5Update

HashFinal ( ) : byte[]

MD5 finalization. Ends an MD5 message-digest operation, writing the the message digest and zeroizing the context.

The RFC named it MD5Final

Приватные методы

Метод Описание
Decode ( uint output, int outputOffset, byte input, int inputOffset, int count ) : void

Decodes input (byte) into output (uint). Assumes len is a multiple of 4.

Encode ( byte output, int outputOffset, uint input, int inputOffset, int count ) : void

Encodes input (uint) into output (byte). Assumes len is multiple of 4.

F ( uint x, uint y, uint z ) : uint
FF ( uint &a, uint b, uint c, uint d, uint x, byte s, uint ac ) : void
G ( uint x, uint y, uint z ) : uint
GG ( uint &a, uint b, uint c, uint d, uint x, byte s, uint ac ) : void
H ( uint x, uint y, uint z ) : uint
HH ( uint &a, uint b, uint c, uint d, uint x, byte s, uint ac ) : void
I ( uint x, uint y, uint z ) : uint
II ( uint &a, uint b, uint c, uint d, uint x, byte s, uint ac ) : void
MD5 ( ) : System
ROTATE_LEFT ( uint x, byte n ) : uint

rotates x left n bits.

Transform ( byte block, int offset ) : void

MD5 basic transformation. Transforms state based on 64 bytes block.

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

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

public Clear ( ) : void
Результат void

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

public ComputeHash ( Stream inputStream ) : byte[]
inputStream Stream
Результат byte[]

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

public ComputeHash ( byte buffer ) : byte[]
buffer byte
Результат byte[]

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

public ComputeHash ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
Результат byte[]

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

static public Create ( ) : MD5
Результат MD5

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

static public Create ( string hashName ) : MD5
hashName string
Результат MD5

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

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

HashCore() защищенный Метод

MD5 block update operation. Continues an MD5 message-digest operation, processing another message block, and updating the context.
The RFC Named it MD5Update
protected HashCore ( byte input, int offset, int count ) : void
input byte
offset int
count int
Результат void

HashFinal() защищенный Метод

MD5 finalization. Ends an MD5 message-digest operation, writing the the message digest and zeroizing the context.
The RFC named it MD5Final
protected HashFinal ( ) : byte[]
Результат byte[]

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

MD5 initialization. Begins an MD5 operation, writing a new context.
The RFC named it "MD5Init"
public Initialize ( ) : void
Результат void

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

public TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
inputBuffer byte
inputOffset int
inputCount int
outputBuffer byte
outputOffset int
Результат int

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

public TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]
inputBuffer byte
inputOffset int
inputCount int
Результат byte[]

Описание свойств

HashSizeValue защищенное свойство

protected int HashSizeValue
Результат int

HashValue защищенное свойство

protected byte[] HashValue
Результат byte[]

State защищенное свойство

protected int State
Результат int