edu.vt.middleware.crypt.digest
Class MD4
java.lang.Object
edu.vt.middleware.crypt.AbstractAlgorithm
edu.vt.middleware.crypt.AbstractRandomizableAlgorithm
edu.vt.middleware.crypt.digest.DigestAlgorithm
edu.vt.middleware.crypt.digest.MD4
- All Implemented Interfaces:
- Algorithm, Randomizable
public class MD4
- extends DigestAlgorithm
MD4 contains functions for hashing data using the MD4
algorithm. This algorithm outputs a 128 bit hash.
- Version:
- $Revision: 3 $
- Author:
- Middleware Services
|
Constructor Summary |
MD4()
Creates an uninitialized instance of an MD4 digest. |
MD4(boolean randomize)
Creates a new MD4 digest that may optionally be initialized with random
data. |
MD4(byte[] salt)
Creates a new MD4 digest and initializes it with the given salt. |
MD4
public MD4()
- Creates an uninitialized instance of an MD4 digest.
MD4
public MD4(boolean randomize)
throws CryptException
- Creates a new MD4 digest that may optionally be initialized with random
data.
- Parameters:
randomize - True to randomize initial state of digest, false
otherwise.
- Throws:
CryptException - if the algorithm is not available from any
provider or the provider is not available in the environment
MD4
public MD4(byte[] salt)
throws CryptException
- Creates a new MD4 digest and initializes it with the given salt.
- Parameters:
salt - Salt data used to initialize digest computation.
- Throws:
CryptException - if the algorithm is not available from any
provider or the provider is not available in the environment
Copyright © 2003-2011 Virginia Tech. All Rights Reserved.