Expand description
Auto-generated module
🤖 Generated with SplitRS
Structs§
- Diffie
Hellman Sim - Toy Diffie-Hellman key exchange simulation.
- Hash
Chain - A simple hash chain using a polynomial rolling hash as a stand-in for a cryptographic hash function.
- Modular
Arithmetic - Modular arithmetic helpers with support for common field operations.
- RingZq
- Polynomial-ring arithmetic over Z_q[x]/(x^n + 1).
- RsaKey
Gen - Toy RSA key generation from scratch: finds two random-ish primes near the given starting point using Miller-Rabin, then builds the key pair.
- Shamir
Secret Share - Shamir’s Secret Sharing over a finite field Z_p.
- ToyDiffie
Hellman - Toy Diffie-Hellman parameters (prime p, generator g).
- ToyLwe
- Lattice-based encryption toy model.
- ToyPoly
Commit - Polynomial commitment scheme toy (Kate-style, educational model).
- ToyRsa
- Toy RSA key pair (n, e, d).
- ToySchnorr
- Toy Schnorr signature scheme over a finite cyclic group Z_p^*.