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,}; Copy
import type { EdgeDecryptOptions } from "@aspect/crypto-edge";const opts: EdgeDecryptOptions = { key: new Uint8Array(32), ciphertext: encrypted.ciphertext, ivLength: 12,};
Raw AES key bytes.
Ciphertext as returned by encrypt (iv || ciphertext).
Optional
Length of the IV prefix (defaults to 12).
Optional additional authenticated data.
Options for edge-compatible AES-GCM decryption.
Example