Class JcePKMACValuesCalculator
java.lang.Object
org.bouncycastle.cert.crmf.jcajce.JcePKMACValuesCalculator
- All Implemented Interfaces:
PKMACValuesCalculator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
calculateDigest
(byte[] data) byte[]
calculateMac
(byte[] pwd, byte[] data) setProvider
(String providerName) setProvider
(Provider provider) void
setup
(org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg)
-
Constructor Details
-
JcePKMACValuesCalculator
public JcePKMACValuesCalculator()
-
-
Method Details
-
setProvider
-
setProvider
-
setup
public void setup(org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg) throws CRMFException - Specified by:
setup
in interfacePKMACValuesCalculator
- Throws:
CRMFException
-
calculateDigest
public byte[] calculateDigest(byte[] data) - Specified by:
calculateDigest
in interfacePKMACValuesCalculator
-
calculateMac
- Specified by:
calculateMac
in interfacePKMACValuesCalculator
- Throws:
CRMFException
-