Crypto Lib
    Preparing search index...

    Interface KmacVerifyOptions

    Options for verifying a KMAC.

    interface KmacVerifyOptions {
        algorithm: "kmac-128" | "kmac-256";
        key: string | Uint8Array<ArrayBufferLike>;
        data: string | Uint8Array<ArrayBufferLike>;
        mac: string;
        customization?: string | Uint8Array<ArrayBufferLike>;
        outputLength?: number;
    }
    Index
    algorithm: "kmac-128" | "kmac-256"

    KMAC algorithm variant.

    key: string | Uint8Array<ArrayBufferLike>

    KMAC key (hex string or bytes).

    data: string | Uint8Array<ArrayBufferLike>

    Data to authenticate (UTF-8 string or bytes).

    mac: string

    Hex-encoded MAC to verify against.

    customization?: string | Uint8Array<ArrayBufferLike>

    Optional customization string (must match what was used during compute).

    outputLength?: number

    Output length in bytes (must match what was used during compute).