International Conference on the Theory and Application of Cryptology and Information Security

ASIACRYPT 2009: Advances in Cryptology – ASIACRYPT 2009 pp 469-486

Factoring pq2 with Quadratic Forms: Nice Cryptanalyses

  • Guilhem Castagnos
  • Antoine Joux
  • Fabien Laguillaumie
  • Phong Q. Nguyen
Conference paper

DOI: 10.1007/978-3-642-10366-7_28

Volume 5912 of the book series Lecture Notes in Computer Science (LNCS)


We present a new algorithm based on binary quadratic forms to factor integers of the form N = pq2. Its heuristic running time is exponential in the general case, but becomes polynomial when special (arithmetic) hints are available, which is exactly the case for the so-called NICE family of public-key cryptosystems based on quadratic fields introduced in the late 90s. Such cryptosystems come in two flavours, depending on whether the quadratic field is imaginary or real. Our factoring algorithm yields a general key-recovery polynomial-time attack on NICE, which works for both versions: Castagnos and Laguillaumie recently obtained a total break of imaginary-NICE, but their attack could not apply to real-NICE. Our algorithm is rather different from classical factoring algorithms: it combines Lagrange’s reduction of quadratic forms with a provable variant of Coppersmith’s lattice-based root finding algorithm for homogeneous polynomials. It is very efficient given either of the following arithmetic hints: the public key of imaginary-NICE, which provides an alternative to the CL attack; or the knowledge that the regulator of the quadratic field \(\mathbb{Q}(\sqrt{p})\) is unusually small, just like in real-NICE.


Public-key CryptanalysisFactorisationBinary Quadratic FormsHomogeneous Coppersmith’s Root FindingLattices
Download to read the full conference paper text

Copyright information

© Springer-Verlag Berlin Heidelberg 2009

Authors and Affiliations

  • Guilhem Castagnos
    • 1
  • Antoine Joux
    • 2
    • 3
  • Fabien Laguillaumie
    • 4
  • Phong Q. Nguyen
    • 5
  1. 1.Institut de Mathématiques de BordeauxUniversité Bordeaux 1 
  2. 2.PRISM – Université de Versailles St-Quentin-en-Yvelines 
  3. 3.DGA 
  4. 4.GREYC – Université de Caen Basse-Normandie 
  5. 5.INRIA and ENSFrance