Crypto Server
    Preparing search index...

    Function classifyCryptoError

    • Classify a crypto operation error as client (4xx) or server (5xx). Input validation errors (invalid hex, wrong key length, etc.) return 400.

      Parameters

      • error: unknown
      • request: { log: { error: (err: unknown, msg: string) => void } }
      • reply: { status: (code: number) => { send: (body: unknown) => unknown } }
      • operation: string

      Returns unknown

      classifyCryptoError(error, request, reply, "Encryption");