Paper 2026/2599

Linear Cryptanalysis of TFHE-Friendly Cipher FRAST in the Average Key Setting

Xingwei Ren, State Key Laboratory of Cyberspace Security Defense, Institute of Information Engineering, Chinese Academy of Sciences
Zhenyu Xiong, State Key Laboratory of Cyberspace Security Defense, Institute of Information Engineering, Chinese Academy of Sciences
Bo Xu, State Key Laboratory of Cyberspace Security Defense, Institute of Information Engineering, Chinese Academy of Sciences
Yongqiang Li, State Key Laboratory of Cyberspace Security Defense, Institute of Information Engineering, Chinese Academy of Sciences
Mingsheng Wang, State Key Laboratory of Cyberspace Security Defense, Institute of Information Engineering, Chinese Academy of Sciences
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.

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Preprint.
Keywords
linear cryptanalysisTFHE-friendly cipherFRASTaverage key setting
Contact author(s)
renxingwei @ iie ac cn
xiongzhenyu @ iie ac cn
xubo2024 @ iie ac cn
liyongqiang @ iie ac cn
wangmingsheng @ iie ac cn
History
2026-11-26: revised
2026-10-22: received
See all versions
Short URL
https://ia.cr/2026/2599
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/2599,
      author = {Xingwei Ren and Zhenyu Xiong and Bo Xu and Yongqiang Li and Mingsheng Wang},
      title = {Linear Cryptanalysis of {TFHE}-Friendly Cipher {FRAST} in the Average Key Setting},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2599},
      year = {2026},
      url = {https://eprint.iacr.org/2026/2599}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.