Crypto Edge
    Preparing search index...

    Interface EdgeDecryptOptions

    Options for edge-compatible AES-GCM decryption.

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

    const opts: EdgeDecryptOptions = {
    key: new Uint8Array(32),
    ciphertext: encrypted.ciphertext,
    ivLength: 12,
    };
    interface EdgeDecryptOptions {
        key: Uint8Array;
        ciphertext: Uint8Array;
        ivLength?: number;
        aad?: Uint8Array<ArrayBufferLike>;
    }
    Index
    key: Uint8Array

    Raw AES key bytes.

    ciphertext: Uint8Array

    Ciphertext as returned by encrypt (iv || ciphertext).

    ivLength?: number

    Length of the IV prefix (defaults to 12).

    aad?: Uint8Array<ArrayBufferLike>

    Optional additional authenticated data.