Crypto Edge
    Preparing search index...

    Interface EdgeHmacSignOptions

    Options for HMAC signing.

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

    const opts: EdgeHmacSignOptions = {
    key: new Uint8Array(32),
    data: new TextEncoder().encode("message"),
    hash: "SHA-256",
    };
    interface EdgeHmacSignOptions {
        key: Uint8Array;
        data: Uint8Array;
        hash?: EdgeHashAlgorithm;
    }

    Hierarchy (View Summary)

    Index
    key: Uint8Array

    HMAC key bytes.

    data: Uint8Array

    Data to sign.

    Hash algorithm (defaults to SHA-256).