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
Afficher le fichier Open project: brandonprry/Potato Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

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

Returns a copy of this MD object.
Returns a copy of this MD object.
public Clone ( ) : object
Résultat object

Digest() public méthode

public Digest ( ) : byte[]
Résultat byte[]

EngineDigest() protected méthode

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

EngineReset() protected méthode

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
Résultat void

EngineUpdate() protected méthode

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
Résultat void

EngineUpdate() protected méthode

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
Résultat void

GetDigestLength() public méthode

public GetDigestLength ( ) : int
Résultat int

Md4() public méthode

public Md4 ( ) : System
Résultat System

Reset() public méthode

public Reset ( ) : void
Résultat void

Update() public méthode

public Update ( byte b ) : void
b byte
Résultat void

Update() public méthode

public Update ( byte b, int offset, int len ) : void
b byte
offset int
len int
Résultat void