Package jcifs.smb1.util
Class MD4
- java.lang.Object
-
- java.security.MessageDigestSpi
-
- java.security.MessageDigest
-
- jcifs.smb1.util.MD4
-
- All Implemented Interfaces:
Cloneable
public class MD4 extends MessageDigest implements Cloneable
Implements the MD4 message digest algorithm in Java.References:
- Ronald L. Rivest, " The MD4 Message-Digest Algorithm", IETF RFC-1320 (informational).
$Revision: 1.2 $
- Author:
- Raif S. Naffah
-
-
Constructor Summary
Constructors Constructor Description MD4()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Returns a copy of this MD object.byte[]
engineDigest()
Completes the hash computation by performing final operations such as padding.void
engineReset()
Resets this object disregarding any temporary data present at the time of the invocation of this call.void
engineUpdate(byte b)
Continues an MD4 message digest using the input byte.void
engineUpdate(byte[] input, int offset, int len)
MD4 block update operation.-
Methods inherited from class java.security.MessageDigest
digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getInstance, getProvider, isEqual, reset, toString, update, update, update, update
-
Methods inherited from class java.security.MessageDigestSpi
engineDigest, engineGetDigestLength, engineUpdate
-
-
-
-
Method Detail
-
clone
public Object clone()
Returns a copy of this MD object.- Overrides:
clone
in classMessageDigest
-
engineReset
public void engineReset()
Resets this object disregarding any temporary data present at the time of the invocation of this call.- Specified by:
engineReset
in classMessageDigestSpi
-
engineUpdate
public void engineUpdate(byte b)
Continues an MD4 message digest using the input byte.- Specified by:
engineUpdate
in classMessageDigestSpi
-
engineUpdate
public void engineUpdate(byte[] input, int offset, int len)
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.
- Specified by:
engineUpdate
in classMessageDigestSpi
- Parameters:
input
- input blockoffset
- start of meaningful bytes in inputlen
- count of bytes in input block to consider
-
engineDigest
public byte[] engineDigest()
Completes the hash computation by performing final operations such as padding. At the return of this engineDigest, the MD engine is reset.- Specified by:
engineDigest
in classMessageDigestSpi
- Returns:
- the array of bytes for the resulting hash value.
-
-