Paper 2026/2543
A Key-Recovery Attack on the GTLN Knapsack Cryptosystem via Continued Fractions
Abstract
We present a continued-fraction key-recovery attack on the knapsack-based public-key cryptosystem proposed by Gómez-Torrecillas, Lobillo, and Navarro (GTLN). The key observation is that ratios of public-key differences closely approximate rational numbers with small denominators, enabling their exact recovery by continued fractions. Divisibility relations in the recovered fractions yield multiples of two private-key integers through greatest common divisor computations. Once these two integers are identified by a bounded cofactor search, all remaining private-key integers except the modulus and the shift are uniquely determined. Further greatest common divisor computations, cofactor enumeration, and modular inversion then recover the secret modulus and shift. The above process of key recovery uses only public keys. For fixed cofactor bounds, the algorithm runs in polynomial time in the public-key bit length, while a heuristic analysis predicts a high probability of recovering the original key. In experiments with prime-based key generation, our Python implementation recovered the complete private key in all 2,400 trials across the 24 recommended parameter sets, with each attack taking less than 0.05 seconds.
Metadata
- Available format(s)
-
PDF
- Category
- Attacks and cryptanalysis
- Publication info
- Preprint.
- Keywords
- CryptanalysisKnapsack cryptosystemsKey-recovery attacksContinued fractionsConvergent
- Contact author(s)
-
zhoushiyi25 @ amss ac cn
dengyp @ amss ac cn
yingshi @ amss ac cn - History
- 2026-10-20: approved
- 2026-10-19: received
- See all versions
- Short URL
- https://ia.cr/2026/2543
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2026/2543,
author = {Shiyi zhou and Yingpu Deng and Shi Ying},
title = {A Key-Recovery Attack on the {GTLN} Knapsack Cryptosystem via Continued Fractions},
howpublished = {Cryptology {ePrint} Archive, Paper 2026/2543},
year = {2026},
url = {https://eprint.iacr.org/2026/2543}
}