Crypto Edge
    Preparing search index...

    Interface EdgeEncryptResult

    Result of edge-compatible AES-GCM encryption.

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

    const result: EdgeEncryptResult = {
    ciphertext: new Uint8Array(44), // iv || ciphertext || tag
    ivLength: 12,
    };
    interface EdgeEncryptResult {
        ciphertext: Uint8Array;
        ivLength: number;
    }
    Index
    ciphertext: Uint8Array

    IV prepended to ciphertext (iv || ciphertext).

    ivLength: number

    Length of the IV prefix.