Interface ChunkedMac

  • All Known Implementing Classes:
    ChunkedAesCmacConscrypt, ChunkedAesCmacImpl, ChunkedHmacImpl

    @Immutable
    public interface ChunkedMac
    An interface representing Streaming MAC. This interface should only be used for authentication. It should NOT be used for other purposes; for instance, it is not guaranteed that this interface produces pseudorandom bytes.
    • Method Detail

      • createComputation

        ChunkedMacComputation createComputation()
                                         throws java.security.GeneralSecurityException
        Creates an instance of a single Chunked MAC computation.
        Throws:
        java.security.GeneralSecurityException
      • createVerification

        ChunkedMacVerification createVerification​(byte[] tag)
                                           throws java.security.GeneralSecurityException
        Creates an instance of a single Chunked MAC verification.
        Throws:
        java.security.GeneralSecurityException