public final class GOST3411 extends AbstractMessageDigest
A message digest algorithm represents the functionality of an one-way hash function for computing a fixed sized data value (message digest, hash) from input data of arbitrary size. The length of the resulting hash value usually is shorter than the length of the input data. Using a one-way hash function will make it easy to compute the hash from the given data, but hard to go the reverse way for calculating the input data when only the hash is known. Furthermore, a proper hash function should avoid any collision, meaning that it has to be hard to find two different messages producing the same hash value.
The GOST3411 message digest algorithm produces a 256-bit hash-value of the given input data.
This class extends the
java.security.MessageDigest class and
applications should use one of the
getInstance methods presented
there to create a MessageDigest-GOST3411 object. Generally, an application
wishing to compute the message digest of some data has to perform three
MessageDigest gost = MessageDigest.getInstance("GOST3411");
gost.update(m1); gost.update(m2); ...
byte hash_value = gost.digest();
There are several ways for combining
digest methods for computing a message digest. Since this class
Cloneable interface, GOST3411 MessageDigest objects
may be used for compute intermediate hashes through cloning (see
When the hash value successfully has been computed, the GOST3411 MessageDigest object automatically resets for being able to be supplied with new data to be hashed..
|Constructor and Description|
|Modifier and Type||Method and Description|
SPI: Resets this message digest for further use.
clone, engineDigest, engineGetDigestLength, engineUpdate, engineUpdate
digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getInstance, getProvider, isEqual, reset, toString, update, update, update, update