Class BCMessageDigest
java.lang.Object
java.security.MessageDigestSpi
java.security.MessageDigest
org.bouncycastle.jcajce.provider.digest.BCMessageDigest
- Direct Known Subclasses:
Blake2b.Blake2b160
,Blake2b.Blake2b256
,Blake2b.Blake2b384
,Blake2b.Blake2b512
,Blake2s.Blake2s128
,Blake2s.Blake2s160
,Blake2s.Blake2s224
,Blake2s.Blake2s256
,Blake3.Blake3_256
,DSTU7564.DigestDSTU7564
,GOST3411.Digest
,GOST3411.Digest2012_256
,GOST3411.Digest2012_512
,Haraka.Digest256
,Haraka.Digest512
,Keccak.DigestKeccak
,MD2.Digest
,MD4.Digest
,MD5.Digest
,RIPEMD128.Digest
,RIPEMD160.Digest
,RIPEMD256.Digest
,RIPEMD320.Digest
,SHA1.Digest
,SHA224.Digest
,SHA256.Digest
,SHA3.DigestParallelHash
,SHA3.DigestSHA3
,SHA3.DigestSHAKE
,SHA3.DigestTupleHash
,SHA384.Digest
,SHA512.Digest
,SHA512.DigestT
,Skein.DigestSkein1024
,Skein.DigestSkein256
,Skein.DigestSkein512
,SM3.Digest
,Tiger.Digest
,Whirlpool.Digest
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
engineDigest
(byte[] buf, int off, int len) int
void
void
engineUpdate
(byte input) void
engineUpdate
(byte[] input, int offset, int len) Methods inherited from class java.security.MessageDigest
clone, digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getInstance, getProvider, isEqual, reset, toString, update, update, update, update
Methods inherited from class java.security.MessageDigestSpi
engineUpdate
-
Field Details
-
digest
-
digestSize
protected int digestSize
-
-
Constructor Details
-
BCMessageDigest
-
-
Method Details
-
engineReset
public void engineReset()- Specified by:
engineReset
in classMessageDigestSpi
-
engineUpdate
public void engineUpdate(byte input) - Specified by:
engineUpdate
in classMessageDigestSpi
-
engineUpdate
public void engineUpdate(byte[] input, int offset, int len) - Specified by:
engineUpdate
in classMessageDigestSpi
-
engineGetDigestLength
public int engineGetDigestLength()- Overrides:
engineGetDigestLength
in classMessageDigestSpi
-
engineDigest
public byte[] engineDigest()- Specified by:
engineDigest
in classMessageDigestSpi
-
engineDigest
- Overrides:
engineDigest
in classMessageDigestSpi
- Throws:
DigestException
-