Reportshash-22 · Constant-time review

Pavelor (hash-22)

CandidatePavelor
FamilySymmetric (AES-derived sponge hash)
ArchivePavelor.zip (SHA-256: 0414e5f0039c2d352eb00c125554114931363dcea6b382052fdd20fbf25e0c31)

hash-22-1: Secret state indexes AES S-box; tail bits branch

SeverityMedium
Scopeside-channel
StatusConfirmed
AffectedReference Pavelor-512/768/1024
DiscoveryTrivial
ExploitationCache or branch side-channel dependent
CreditMarkku-Juhani O. Saarinen markku-juhani.saarinen@tuni.fi, with AI assistance
Date2026-09-23

The round function reads AES_SBOX[in[i]] for each secret-dependent state byte (CryptHash_AlgorithmInstance.c:77). The 256-byte table spans cache lines. Additionally, xor_bit branches on each message bit in the final partial block (:177,199-200); GCC -O2 retains a conditional jump. No complete message-recovery experiment was run. See constant_time.md.

Reproducing

Commands below run in a checkout of the ngcc-harness repository with the candidate built (see its README).

Inspect the cited S-box access and compile the reference file with gcc -O2 -g -c; objdump -dSl shows bt/jae at xor_bit.