java.lang.Object | |
↳ | org.bouncycastle.crypto.digests.ShortenedDigest |
Wrapper class that reduces the output length of a particular digest to only the first n bytes of the digest function.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Base constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
close the digest, producing the final digest value.
| |||||||||||
return the algorithm name
| |||||||||||
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
| |||||||||||
return the size, in bytes, of the digest produced by this message digest.
| |||||||||||
reset the digest back to it's initial state.
| |||||||||||
update the message digest with a block of bytes.
| |||||||||||
update the message digest with a single byte.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.Digest
| |||||||||||
From interface
org.bouncycastle.crypto.ExtendedDigest
|
Base constructor.
baseDigest | underlying digest to use. |
---|---|
length | length in bytes of the output of doFinal. |
IllegalArgumentException | if baseDigest is null, or length is greater than baseDigest.getDigestSize(). |
---|
close the digest, producing the final digest value. The doFinal call leaves the digest reset.
out | the array the digest is to be copied into. |
---|---|
outOff | the offset into the out array the digest is to start at. |
Return the size in bytes of the internal buffer the digest applies it's compression function to.
return the size, in bytes, of the digest produced by this message digest.
reset the digest back to it's initial state.
update the message digest with a block of bytes.
in | the byte array containing the data. |
---|---|
inOff | the offset into the byte array where the data starts. |
len | the length of the data. |
update the message digest with a single byte.
in | the input byte to be entered. |
---|