HmacCompute(IDigest, Byte, Byte) 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
)

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.

Return Value

Byte
The computed HMAC as a byte array.

See Also