public class DigestSpec extends Object implements Spec<org.bouncycastle.crypto.Digest>
newInstance()
method.Constructor and Description |
---|
DigestSpec(String algName)
Creates a new instance from the given algorithm name.
|
DigestSpec(String algName,
int digestSize)
Constructor for digests that have variable output size, e.g.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
int |
getSize() |
org.bouncycastle.crypto.Digest |
newInstance()
Creates a new digest instance.
|
String |
toString() |
public DigestSpec(String algName)
algName
- Digest algorithm name.public DigestSpec(String algName, int digestSize)
algName
- Digest algorithm name.digestSize
- Size of resultant digest in bits.public String getAlgorithm()
getAlgorithm
in interface Spec<org.bouncycastle.crypto.Digest>
public int getSize()
public org.bouncycastle.crypto.Digest newInstance()
newInstance
in interface Spec<org.bouncycastle.crypto.Digest>
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.