Polkadot Apps
    Preparing search index...
    • Decrypt binary data with AES-256-GCM.

      Parameters

      • ciphertext: Uint8Array

        Data to decrypt (includes the 16-byte GCM auth tag).

      • key: Uint8Array

        32-byte AES-256 key (must match the encryption key).

      • nonce: Uint8Array

        12-byte nonce used during encryption.

      Returns Uint8Array

      The decrypted plaintext as a Uint8Array.

      If key is not 32 bytes, or if decryption/authentication fails.