Crypto SDK
    Preparing search index...

    Interface AlgorithmNegotiationResult

    Result of dynamic cryptographic algorithm negotiation.

    interface AlgorithmNegotiationResult {
        selectedAlgorithm: string;
        cipherCategory: "lattice-kem" | "hybrid-kem" | "classical-ecdh";
        securityCategory: 0 | 1 | 3 | 5;
        isHybrid: boolean;
        publicKeyBytes: number;
        ciphertextBytes: number;
        totalPayloadOverhead: number;
        fitsWithinMtu: boolean;
        fallbackChain: string[];
        compliancePosture: { standard: string; fipsStandard: string };
    }
    Index
    selectedAlgorithm: string

    Chosen algorithm identifier.

    cipherCategory: "lattice-kem" | "hybrid-kem" | "classical-ecdh"

    Cipher category.

    securityCategory: 0 | 1 | 3 | 5

    NIST post-quantum security category (1, 3 or 5); 0 for a classical algorithm.

    isHybrid: boolean

    Whether chosen algorithm is a composite hybrid.

    publicKeyBytes: number

    Public key size in bytes.

    ciphertextBytes: number

    Ciphertext size in bytes.

    totalPayloadOverhead: number

    Total transport overhead in bytes.

    fitsWithinMtu: boolean

    Whether ciphertext fits within maxPayloadBytes without IP fragmentation.

    fallbackChain: string[]

    The candidates that met the constraints, strongest first.

    compliancePosture: { standard: string; fipsStandard: string }

    Standards the selected algorithm follows.