CalculateResponse Method
CalculateResponse(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>)
Calculates HMAC using SHA1 as a hash function.
C#
protected static byte[] CalculateResponse(ReadOnlyMemory<byte> secret, ReadOnlyMemory<byte> message)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | secret | |
System.ReadOnlyMemory<System.Byte> | message |
Returns
System.Byte[]
HMAC result.