Class AbstractMacSpi

    • Method Detail

      • engineGetMacLength

        protected final int engineGetMacLength()
        Description copied from class: MacSpi
        Returns the length of the MAC in bytes.
        Specified by:
        engineGetMacLength in class MacSpi
        Returns:
        the MAC length in bytes.
      • engineUpdate

        protected final void engineUpdate​(byte b)
        Description copied from class: MacSpi
        Processes the given byte.
        Specified by:
        engineUpdate in class MacSpi
        Parameters:
        b - the input byte to be processed.
      • engineUpdate

        protected final void engineUpdate​(byte[] b,
                                          int ofs,
                                          int len)
        Description copied from class: MacSpi
        Processes the first len bytes in input, starting at offset inclusive.
        Specified by:
        engineUpdate in class MacSpi
        Parameters:
        b - the input buffer.
        ofs - the offset in input where the input starts.
        len - the number of bytes to process.
      • engineDoFinal

        protected final byte[] engineDoFinal()
        Description copied from class: MacSpi
        Completes the MAC computation and resets the MAC for further use, maintaining the secret key that the MAC was initialized with.
        Specified by:
        engineDoFinal in class MacSpi
        Returns:
        the MAC result.
      • engineReset

        protected void engineReset()
        Description copied from class: MacSpi
        Resets the MAC for further use, maintaining the secret key that the MAC was initialized with.
        Specified by:
        engineReset in class MacSpi