org.bouncycastle.crypto.digests
public class ShortenedDigest extends Object implements ExtendedDigest
Constructor Summary | |
---|---|
ShortenedDigest(ExtendedDigest baseDigest, int length)
Base constructor.
|
Method Summary | |
---|---|
int | doFinal(byte[] out, int outOff) |
String | getAlgorithmName() |
int | getByteLength() |
int | getDigestSize() |
void | reset() |
void | update(byte in) |
void | update(byte[] in, int inOff, int len) |
Parameters: baseDigest underlying digest to use. length length in bytes of the output of doFinal.
Throws: IllegalArgumentException if baseDigest is null, or length is greater than baseDigest.getDigestSize().