Polkadot Apps
    Preparing search index...

    Function aesGcmDecryptPacked

    • Decrypt a packed AES-256-GCM buffer (nonce prepended to ciphertext).

      Input format: nonce(12) || ciphertext.

      Parameters

      • packed: Uint8Array

        The packed buffer to decrypt.

      • key: Uint8Array

        32-byte AES-256 key.

      Returns Uint8Array

      The decrypted plaintext as a Uint8Array.

      If key is not 32 bytes, the packed data is too short, or authentication fails.