PKMACValuesCalculator (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.cert.crmf

## Interface PKMACValuesCalculator

- All Known Implementing Classes:
    JcePKMACValuesCalculator

      public interface PKMACValuesCalculator

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

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

      Throws:
        `CRMFException`

    - #### calculateDigest

          byte[] calculateDigest(byte[] data)
                                 throws CRMFException

      Throws:
        `CRMFException`

    - #### calculateMac

          byte[] calculateMac(byte[] pwd,
                            byte[] data)
                              throws CRMFException

      Throws:
        `CRMFException`