Crypto Middleware
    Preparing search index...

    Interface MiddlewareConfig

    interface MiddlewareConfig {
        key?: string;
        routes?: string[];
        operations?: (
            | "decrypt-request"
            | "encrypt-response"
            | "verify-signature"
            | "verify-jwt"
            | "pq-decrypt-request"
            | "pq-encrypt-response"
        )[];
        hmacKey?: string;
        jwtSecret?: string;
        jwtIssuer?: string;
        jwtAudience?: string;
        pqKeys?: PqKeysConfig;
        chunkSize?: number;
    }
    Index
    key?: string

    Hex-encoded key for payload encryption/decryption.

    routes?: string[]

    Routes to apply middleware to (glob patterns).

    operations?: (
        | "decrypt-request"
        | "encrypt-response"
        | "verify-signature"
        | "verify-jwt"
        | "pq-decrypt-request"
        | "pq-encrypt-response"
    )[]

    Operations to perform.

    hmacKey?: string

    HMAC key for webhook signature verification (hex-encoded).

    jwtSecret?: string

    HMAC secret for HS256 JWT verification.

    jwtIssuer?: string

    Required JWT iss claim for verify-jwt; unchecked when unset.

    jwtAudience?: string

    Required JWT audience (aud claim) for verify-jwt; unchecked when unset.

    pqKeys?: PqKeysConfig

    Post-quantum key pair configuration for PQ stream operations.

    chunkSize?: number

    Chunk size in bytes for streaming encryption/decryption.