What problem does it solve? Cryptographic CTF challenges involving RSA small roots, biased DSA/ECDSA nonces, or knapsack ciphers require precise lattice constructions that base models frequently get wrong, such as incorrect dimensions, missing scaling factors, or misapplied Coppersmith bounds. ## Core Features & Use Cases - Coppersmith Small Roots: Recover stereotyped RSA messages, partially exposed factors, and small private exponents via univariate and multivariate Coppersmith (Boneh-Durfee) with SageMath small_roots. - Hidden Number Problem Attacks: Recover DSA/ECDSA private keys from biased or reused nonces by reducing the problem to CVP on a signature lattice. - Knapsack and NTRU Attacks: Solve low-density subset sum problems with CJLOSS embedding and recover NTRU keys via circulant lattice reduction. - Use Case: Given an ECDSA challenge where 100 signatures leak one MSB of each nonce, build the HNP lattice, run LLL in SageMath, and extract the private key. ## Quick Start Ask the agent to recover an RSA plaintext where the upper bits of the message are known using the Coppersmith small roots method in SageMath.