org.bouncycastle.cert.crmf.jcajce
Class JcePKMACValuesCalculator
java.lang.Object
|
+--org.bouncycastle.cert.crmf.jcajce.JcePKMACValuesCalculator
- All Implemented Interfaces:
- PKMACValuesCalculator
- public class JcePKMACValuesCalculator
- extends java.lang.Object
- implements PKMACValuesCalculator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcePKMACValuesCalculator
public JcePKMACValuesCalculator()
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 interface PKMACValuesCalculator
calculateDigest
public byte[] calculateDigest(byte[] data)
- Specified by:
calculateDigest
in interface PKMACValuesCalculator
calculateMac
public byte[] calculateMac(byte[] pwd,
byte[] data)
throws CRMFException
- Specified by:
calculateMac
in interface PKMACValuesCalculator