public class TruncatingDigestCalculator
extends java.lang.Object
implements org.bouncycastle.operator.DigestCalculator
| Constructor and Description |
|---|
TruncatingDigestCalculator(org.bouncycastle.operator.DigestCalculator baseCalculator)
Default constructor - truncate to 28.
|
TruncatingDigestCalculator(org.bouncycastle.operator.DigestCalculator baseCalculator,
int length)
Constructor specifying a length.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getAlgorithmIdentifier()
Return the algorithm identifier representing the digest implemented by
this calculator.
|
byte[] |
getDigest()
Return the digest calculated on what has been written to the calculator's output stream.
|
java.io.OutputStream |
getOutputStream()
Returns a stream that will accept data for the purpose of calculating
a digest.
|
public TruncatingDigestCalculator(org.bouncycastle.operator.DigestCalculator baseCalculator)
baseCalculator - actual calculator for working out the digest.public TruncatingDigestCalculator(org.bouncycastle.operator.DigestCalculator baseCalculator,
int length)
baseCalculator - actual calculator for working out the digest.length - length in bytes of the final result.public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
org.bouncycastle.operator.DigestCalculatorgetAlgorithmIdentifier in interface org.bouncycastle.operator.DigestCalculatorpublic java.io.OutputStream getOutputStream()
org.bouncycastle.operator.DigestCalculatorgetOutputStream in interface org.bouncycastle.operator.DigestCalculatorpublic byte[] getDigest()
org.bouncycastle.operator.DigestCalculatorgetDigest in interface org.bouncycastle.operator.DigestCalculator