Constant-time reviewkex-02 · Report

AFS-KEX constant-time review

Scope: reference C128/C256/C512 implementations, with the C128 decapsulation path traced in detail. Secrets are the persistent KEM secret polynomial, recovered encapsulation message, ephemeral secrets, and final shared key. Public values include public keys, ciphertexts, protocol messages and fixed instance lengths. A ciphertext-dependent condition is not necessarily public when it is computed after secret-key decryption.

Coverage limit: this was a source/data-flow review of the reference KEM and protocol paths, plus a GCC code-generation check for C128. It is not an exhaustive analysis of optimized AVX2 copies or every machine-code instruction.