org.bouncycastle.crypto.digests
Class ShortenedDigest
java.lang.Objectorg.bouncycastle.crypto.digests.ShortenedDigest
- Digest, ExtendedDigest
public class ShortenedDigest
extends java.lang.Object
Wrapper class that reduces the output length of a particular digest to
only the first n bytes of the digest function.
ShortenedDigest
public ShortenedDigest(ExtendedDigest baseDigest,
int length) Base constructor.
baseDigest - underlying digest to use.length - length in bytes of the output of doFinal.
doFinal
public int doFinal(byte[] out,
int outOff)- doFinal in interface Digest
update
public void update(byte[] in,
int inOff,
int len)- update in interface Digest