C# 클래스 PubNubMessaging.Core.MD5

MD5 messaging-digest algorithm is a widely used cryptographic hash function that produces 128-bit hash value.
상속: IDisposable
파일 보기 프로젝트 열기: pubnub/c-sharp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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
GetMd5String ( String source ) : String
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

GetMd5String() 정적인 공개 메소드

static public GetMd5String ( String source ) : String
source String
리턴 String

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