Class BaseMac

    • Constructor Detail

      • BaseMac

        protected BaseMac​(Mac macEngine)
      • BaseMac

        protected BaseMac​(Mac macEngine,
                          int scheme,
                          int pbeHash,
                          int keySize)
    • Method Detail

      • engineInit

        protected void engineInit​(java.security.Key key,
                                  java.security.spec.AlgorithmParameterSpec params)
                           throws java.security.InvalidKeyException,
                                  java.security.InvalidAlgorithmParameterException
        Specified by:
        engineInit in class javax.crypto.MacSpi
        Throws:
        java.security.InvalidKeyException
        java.security.InvalidAlgorithmParameterException
      • engineGetMacLength

        protected int engineGetMacLength()
        Specified by:
        engineGetMacLength in class javax.crypto.MacSpi
      • engineReset

        protected void engineReset()
        Specified by:
        engineReset in class javax.crypto.MacSpi
      • engineUpdate

        protected void engineUpdate​(byte input)
        Specified by:
        engineUpdate in class javax.crypto.MacSpi
      • engineUpdate

        protected void engineUpdate​(byte[] input,
                                    int offset,
                                    int len)
        Specified by:
        engineUpdate in class javax.crypto.MacSpi
      • engineDoFinal

        protected byte[] engineDoFinal()
        Specified by:
        engineDoFinal in class javax.crypto.MacSpi