Constant-time reviewkex-09 · Report

TriQ-KEX constant-time review

Scope: four submitted reference variants. The code paths below were traced in TriQ-KEX-128; src/ref/vector.c, parsing.c, and triq_pke.c are byte-identical across 128/256/384/512. This is a source-level review of the cited paths, not a machine-code proof of all functions or platforms.

Secrets: the long-term KEM decryption seed, PRF keys, ephemeral KEM messages/coins, and derived session key. Public values: transmitted identities, public keys, ciphertexts and their lengths. A validity predicate after secret-key decapsulation is not automatically public merely because the ciphertext is public.

Coverage limit: this audit traced the KEM/key-exchange call graph and searched branch, table-index and division/remainder sites in representative reference sources. It did not prove every auxiliary implementation or compiler output constant-time.