Class JcePKMACValuesCalculator
- java.lang.Object
-
- org.bouncycastle.cert.crmf.jcajce.JcePKMACValuesCalculator
-
- All Implemented Interfaces:
PKMACValuesCalculator
public class JcePKMACValuesCalculator extends java.lang.Object implements PKMACValuesCalculator
-
-
Constructor Summary
Constructors Constructor Description JcePKMACValuesCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
calculateDigest(byte[] data)
byte[]
calculateMac(byte[] pwd, byte[] data)
JcePKMACValuesCalculator
setProvider(java.lang.String providerName)
JcePKMACValuesCalculator
setProvider(java.security.Provider provider)
void
setup(org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg)
-
-
-
Method Detail
-
setProvider
public JcePKMACValuesCalculator setProvider(java.security.Provider provider)
-
setProvider
public JcePKMACValuesCalculator setProvider(java.lang.String providerName)
-
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
public byte[] calculateMac(byte[] pwd, byte[] data) throws CRMFException
- Specified by:
calculateMac
in interfacePKMACValuesCalculator
- Throws:
CRMFException
-
-