java.lang.Object
edu.vt.middleware.crypt.AbstractAlgorithm
edu.vt.middleware.crypt.AbstractRandomizableAlgorithm
edu.vt.middleware.crypt.digest.DigestAlgorithm
edu.vt.middleware.crypt.digest.SHA512
- All Implemented Interfaces:
Algorithm
,Randomizable
,Cloneable
SHA512
contains functions for hashing data using the SHA-512
algorithm. This algorithm outputs a 512 bit hash.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
-
Field Summary
Fields inherited from class edu.vt.middleware.crypt.digest.DigestAlgorithm
CHUNK_SIZE, digest, salt
Fields inherited from class edu.vt.middleware.crypt.AbstractRandomizableAlgorithm
randomByteSize
Fields inherited from class edu.vt.middleware.crypt.AbstractAlgorithm
algorithm, randomProvider
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.vt.middleware.crypt.digest.DigestAlgorithm
clone, digest, digest, digest, digest, getDigest, getRandomSalt, newInstance, setDigest, setSalt
Methods inherited from class edu.vt.middleware.crypt.AbstractRandomizableAlgorithm
getRandomByteSize, setRandomByteSize
Methods inherited from class edu.vt.middleware.crypt.AbstractAlgorithm
getAlgorithm, getRandomData, setRandomProvider, toString
-
Constructor Details
-
SHA512
public SHA512()Creates an uninitialized instance of an SHA512 digest. -
SHA512
public SHA512(boolean randomize) Creates a new SHA512 digest that may optionally be initialized with random data.- Parameters:
randomize
- True to randomize initial state of digest, false otherwise.
-
SHA512
public SHA512(byte[] salt) Creates a new SHA512 digest and initializes it with the given salt.- Parameters:
salt
- Salt data used to initialize digest computation.
-