C# Class SharpCifs.Util.Md4

Implements the MD4 message digest algorithm in Java.
Implements the MD4 message digest algorithm in Java.

References:

  1. Ronald L. Rivest, " The MD4 Message-Digest Algorithm", IETF RFC-1320 (informational).

$Revision: 1.2 $

Inheritance: SharpCifs.Util.Sharpen.MessageDigest
Datei anzeigen Open project: brandonprry/Potato Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Returns a copy of this MD object.

Returns a copy of this MD object.

Digest ( ) : byte[]
GetDigestLength ( ) : int
Md4 ( ) : System
Reset ( ) : void
Update ( byte b ) : void
Update ( byte b, int offset, int len ) : void

Protected Methods

Method Description
EngineDigest ( ) : byte[]

Completes the hash computation by performing final operations such as padding.

Completes the hash computation by performing final operations such as padding. At the return of this engineDigest, the MD engine is reset.

EngineReset ( ) : void

Resets this object disregarding any temporary data present at the time of the invocation of this call.

Resets this object disregarding any temporary data present at the time of the invocation of this call.

EngineUpdate ( byte b ) : void

Continues an MD4 message digest using the input byte.

Continues an MD4 message digest using the input byte.

EngineUpdate ( byte input, int offset, int len ) : void

MD4 block update operation.

MD4 block update operation.

Continues an MD4 message digest operation, by filling the buffer, transform(ing) data in 512-bit message block(s), updating the variables context and count, and leaving (buffering) the remaining bytes in buffer for the next update or finish.

Private Methods

Method Description
Ff ( int a, int b, int c, int d, int x, int s ) : int
Gg ( int a, int b, int c, int d, int x, int s ) : int
Hh ( int a, int b, int c, int d, int x, int s ) : int
Md4 ( Md4 md ) : System

This constructor is here to implement cloneability of this class.

This constructor is here to implement cloneability of this class.

Transform ( byte block, int offset ) : void

MD4 basic transformation.

MD4 basic transformation.

Transforms context based on 512 bits from input block starting from the offset'th byte.

Method Details

Clone() public method

Returns a copy of this MD object.
Returns a copy of this MD object.
public Clone ( ) : object
return object

Digest() public method

public Digest ( ) : byte[]
return byte[]

EngineDigest() protected method

Completes the hash computation by performing final operations such as padding.
Completes the hash computation by performing final operations such as padding. At the return of this engineDigest, the MD engine is reset.
protected EngineDigest ( ) : byte[]
return byte[]

EngineReset() protected method

Resets this object disregarding any temporary data present at the time of the invocation of this call.
Resets this object disregarding any temporary data present at the time of the invocation of this call.
protected EngineReset ( ) : void
return void

EngineUpdate() protected method

Continues an MD4 message digest using the input byte.
Continues an MD4 message digest using the input byte.
protected EngineUpdate ( byte b ) : void
b byte
return void

EngineUpdate() protected method

MD4 block update operation.
MD4 block update operation.

Continues an MD4 message digest operation, by filling the buffer, transform(ing) data in 512-bit message block(s), updating the variables context and count, and leaving (buffering) the remaining bytes in buffer for the next update or finish.

protected EngineUpdate ( byte input, int offset, int len ) : void
input byte input block
offset int start of meaningful bytes in input
len int count of bytes in input block to consider
return void

GetDigestLength() public method

public GetDigestLength ( ) : int
return int

Md4() public method

public Md4 ( ) : System
return System

Reset() public method

public Reset ( ) : void
return void

Update() public method

public Update ( byte b ) : void
b byte
return void

Update() public method

public Update ( byte b, int offset, int len ) : void
b byte
offset int
len int
return void