Crypto SDK
    Preparing search index...

    Interface AlgorithmNegotiationOptions

    Options for dynamic cryptographic algorithm negotiation.

    interface AlgorithmNegotiationOptions {
        maxPayloadBytes?: number;
        securityCategoryMin?: 1 | 3 | 5;
        requireHybrid?: boolean;
        clientSupportedAlgorithms?: string[];
        allowClassical?: boolean;
    }
    Index
    maxPayloadBytes?: number

    Maximum single-packet payload bytes (e.g. 1500 for standard Ethernet MTU).

    securityCategoryMin?: 1 | 3 | 5

    Minimum NIST post-quantum security category required (1, 3, or 5). Defaults to 1.

    requireHybrid?: boolean

    Whether hybrid classical + post-quantum pairing is mandatory (e.g., BSI/ANSSI rules).

    clientSupportedAlgorithms?: string[]

    Client-supported algorithm list filter.

    allowClassical?: boolean

    Allow a classical (not quantum-resistant) algorithm such as X25519. Default false: without it, a classical algorithm is never selected.