Package org.bouncycastle.crypto.digests
Class GOST3411_2012_256Digest
java.lang.Object
org.bouncycastle.crypto.digests.GOST3411_2012Digest
org.bouncycastle.crypto.digests.GOST3411_2012_256Digest
- All Implemented Interfaces:
Digest,ExtendedDigest,Memoable
implementation of GOST R 34.11-2012 256-bit
-
Field Summary
Fields inherited from class org.bouncycastle.crypto.digests.GOST3411_2012Digest
purpose -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncopy()Produce a copy of this object with its configuration and in its current state.intdoFinal(byte[] out, int outOff) close the digest, producing the final digest value.return the algorithm nameintreturn the size, in bytes, of the digest produced by this message digest.Methods inherited from class org.bouncycastle.crypto.digests.GOST3411_2012Digest
getByteLength, reset, reset, update, update
-
Constructor Details
-
GOST3411_2012_256Digest
-
GOST3411_2012_256Digest
public GOST3411_2012_256Digest() -
GOST3411_2012_256Digest
-
-
Method Details
-
getAlgorithmName
Description copied from interface:Digestreturn the algorithm name- Specified by:
getAlgorithmNamein interfaceDigest- Specified by:
getAlgorithmNamein classGOST3411_2012Digest- Returns:
- the algorithm name
-
getDigestSize
public int getDigestSize()Description copied from interface:Digestreturn the size, in bytes, of the digest produced by this message digest.- Specified by:
getDigestSizein interfaceDigest- Specified by:
getDigestSizein classGOST3411_2012Digest- Returns:
- the size, in bytes, of the digest produced by this message digest.
-
doFinal
public int doFinal(byte[] out, int outOff) Description copied from interface:Digestclose the digest, producing the final digest value. The doFinal call leaves the digest reset.- Specified by:
doFinalin interfaceDigest- Overrides:
doFinalin classGOST3411_2012Digest- Parameters:
out- the array the digest is to be copied into.outOff- the offset into the out array the digest is to start at.
-
copy
Description copied from interface:MemoableProduce 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.
- Specified by:
copyin interfaceMemoable- Specified by:
copyin classGOST3411_2012Digest
-