RAILGUN Reloaded
    Preparing search index...

    Thrown when the provided encryption key is not 32 bytes OR when AES-GCM authentication fails on decrypt (wrong key or tampered ciphertext). Callers see a single failure mode for both, since they're indistinguishable from outside.

    Hierarchy

    • Error
      • InvalidEncryptionKeyError
    Index
    • Construct an InvalidEncryptionKeyError.

      Parameters

      • message: string = 'Encryption key invalid (wrong length or decryption auth failure)'

        Optional custom message.

      • Optionaloptions: { cause?: unknown }

        Optional options object.

        • Optionalcause?: unknown

          Underlying error to attach via Error.cause.

      Returns InvalidEncryptionKeyError