Crypto Edge
    Preparing search index...

    Interface EdgeHmacVerifyOptions

    Options for HMAC verification.

    import type { EdgeHmacVerifyOptions } from "@aspect/crypto-edge";

    const opts: EdgeHmacVerifyOptions = {
    key: new Uint8Array(32),
    data: new TextEncoder().encode("message"),
    signature: hmacBytes,
    };
    interface EdgeHmacVerifyOptions {
        key: Uint8Array;
        data: Uint8Array;
        hash?: EdgeHashAlgorithm;
        signature: Uint8Array;
    }

    Hierarchy (View Summary)

    Index
    key: Uint8Array

    HMAC key bytes.

    data: Uint8Array

    Data to sign.

    Hash algorithm (defaults to SHA-256).

    signature: Uint8Array

    Signature to verify against.