Oslo

HMAC.verify()

Verifies a signature with a public key and returns true if the signature is valid. See HMAC for an example.

Definition

function sign(
	secretKey: ArrayBuffer | TypedArray,
	signature: ArrayBuffer | TypedArray,
	data: ArrayBuffer | TypedArray
): Promise<boolean>;

Parameters

  • secretKey: Secret key in raw format
  • signature
  • data: The original signed data