Skip to content

feat: implement LCG nonce detection #4

Description

@oritwoen

Description

Detect nonces generated using Linear Congruential Generators (LCG).

Background

Some implementations use weak PRNGs like LCG for nonce generation. LCG outputs follow predictable patterns: k_{n+1} = (a * k_n + c) mod m. Once detected, the sequence can be predicted and private keys recovered.

Requirements

  • Detect LCG patterns in nonce sequences
  • Recover LCG parameters (a, c, m)
  • Predict future/past nonces
  • Recover private keys from predicted nonces

Technical Notes

  • Requires multiple signatures from same key
  • May need lattice techniques for partial state recovery
  • Consider common LCG parameters (glibc, MINSTD, etc.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions