HmacCompute(IDigest, Byte, Byte, Int32, Int32) Method

Computes an HMAC using the specified hash algorithm and key for the entire input data.

Definition

Namespace: SnapDB.Security
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static byte[] Compute(
	IDigest hash,
	byte[] key,
	byte[] data,
	int position,
	int length
)

Parameters

hash  IDigest
The hash algorithm to use for the HMAC.
key  Byte
The secret key for the HMAC computation.
data  Byte
The input data to compute the HMAC over.
position  Int32
The starting position in the data array.
length  Int32
The length of data to use for HMAC computation.

Return Value

Byte
The computed HMAC as a byte array.

See Also