Paper 2026/2599
Linear Cryptanalysis of TFHE-Friendly Cipher FRAST in the Average Key Setting
Abstract
FRAST is a TFHE-friendly stream cipher proposed by Cho et al. (ToSC 2024), which generates new public random S-boxes for every keystream block. Bak et al. (ToSC 2026) gave a linear attack on FRAST in the average key setting, but wrong guesses passed its test, and they left the explanation as an open problem. In this paper, we solve this problem for the mask on the least significant bit and turn their attack into working attacks. For this mask, we show that the key differences of a random round fall into five classes that their trail cannot separate, and that their filter gives some wrong classes of the right parity a nonzero expected score. We compute the correlation of their trail exactly through the real cipher, for every fixed key, and show that side trails across the fixed rounds add nothing to the expected score of our guesses. Our matched filter statistic weights every block by the autocorrelations that a guess predicts, and we present the algorithm Contract, which computes this statistic for all class guesses. With known nonces, we recovered the classes of a branch pair on 15 rounds and the key on ten rounds, whereas the chosen-nonce linear attack of Bak et al. covered five rounds. In a cost model, our class recovery with known nonces reaches 26 of the 40 rounds for more than 99.9% of the keys. With chosen nonces and counting an XOF call as one operation, as Bak et al. do, it reaches full FRAST on weak keys of density $2^{-11.8}$ to $2^{-5.4}$. The estimated total time divided by this density stays below $2^{128}$, which is the claimed security level.
Comments