Bouncy Castle Cryptography Library 1.59

org.bouncycastle.cert.crmf
Interface PKMACValuesCalculator

All Known Implementing Classes:
JcePKMACValuesCalculator

public interface PKMACValuesCalculator


Method Summary
 byte[] calculateDigest(byte[] data)
           
 byte[] calculateMac(byte[] pwd, byte[] data)
           
 void setup(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg)
           
 

Method Detail

setup

public void setup(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlg,
                  org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg)
           throws CRMFException
Throws:
CRMFException

calculateDigest

public byte[] calculateDigest(byte[] data)
                       throws CRMFException
Throws:
CRMFException

calculateMac

public byte[] calculateMac(byte[] pwd,
                           byte[] data)
                    throws CRMFException
Throws:
CRMFException

Bouncy Castle Cryptography Library 1.59