TlsSuiteMac
Base interface for a generic TLS MAC implementation for use with a bulk cipher.
using System;
namespace Org.BouncyCastle.Tls.Crypto.Impl
{
public interface TlsSuiteMac
{
int Size { get; }
byte[] CalculateMac(long seqNo, short type, byte[] message, int offset, int length);
byte[] CalculateMac(long seqNo, short type, ReadOnlySpan<byte> message);
byte[] CalculateMacConstantTime(long seqNo, short type, byte[] message, int offset, int length, int expectedLength, byte[] randomData);
}
}