block word digest
SHA-1 512 32 160
SHA-256 512 32 256
SHA-384 1024 64 384
SHA-512 1024 64 512
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | SHA512Digest(byte[]
the encoded state from the originating digest. encodedState)State constructor - create a digest initialised with the state of a previous one. |
| Modifier and Type | Method and Description |
|---|---|
| public Memoable | copy()
Implements org. Produce a copy of this object with its configuration and in its current state. |
| protected CryptoServiceProperties | cryptoServiceProperties()
Implements abstract org.
|
| public int | doFinal(byte[]
the array the digest is to be copied into. out, int the offset into the out array the digest is to start at. outOff)Implements org. close the digest, producing the final digest value. |
| public String | getAlgorithmName()
Implements org. return the algorithm name |
| public int | getDigestSize()
Implements org. return the size, in bytes, of the digest produced by this message digest. |
| public byte[] | getEncodedState()
Implements org. Return an encoded byte array for the digest's internal state |
| public void | reset()
Overrides org. Implements org. reset the chaining variables |
| public void | reset(Memoable
an object originally other)copied from an object of the same type as this instance.Implements org. Restore a copied object state into this object. |
| DIGEST_LENGTH | back to summary |
|---|---|
| private static final int DIGEST_LENGTH | |
| SHA512Digest | back to summary |
|---|---|
| public SHA512Digest() Standard constructor | |
| SHA512Digest | back to summary |
|---|---|
| public SHA512Digest(CryptoServicePurpose purpose) Standard constructor, with purpose | |
| SHA512Digest | back to summary |
|---|---|
| public SHA512Digest(SHA512Digest t) Copy constructor. This will copy the state of the provided message digest. | |
| SHA512Digest | back to summary |
|---|---|
| public SHA512Digest(byte[] encodedState) State constructor - create a digest initialised with the state of a previous one.
| |
| copy | back to summary |
|---|---|
| public Memoable copy() Implements org. Doc from org. Produce a copy of this object with its configuration and in its current state. The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state. | |
| cryptoServiceProperties | back to summary |
|---|---|
| protected CryptoServiceProperties cryptoServiceProperties() Implements abstract org. | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) Implements org. Doc from org. close the digest, producing the final digest value. The doFinal call leaves the digest reset.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name
| |
| getDigestSize | back to summary |
|---|---|
| public int getDigestSize() Implements org. Doc from org. return the size, in bytes, of the digest produced by this message digest.
| |
| getEncodedState | back to summary |
|---|---|
| public byte[] getEncodedState() Implements org. Doc from org. Return an encoded byte array for the digest's internal state
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Implements org. reset the chaining variables | |
| reset | back to summary |
|---|---|
| public void reset(Memoable other) Implements org. Doc from org. Restore a copied object state into this object. Implementations of this method should try to avoid or minimise memory allocation to perform the reset. | |