Skip to main content

Module types

Module types 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Structs§

DiffieHellmanSim
Toy Diffie-Hellman key exchange simulation.
HashChain
A simple hash chain using a polynomial rolling hash as a stand-in for a cryptographic hash function.
ModularArithmetic
Modular arithmetic helpers with support for common field operations.
RingZq
Polynomial-ring arithmetic over Z_q[x]/(x^n + 1).
RsaKeyGen
Toy RSA key generation from scratch: finds two random-ish primes near the given starting point using Miller-Rabin, then builds the key pair.
ShamirSecretShare
Shamir’s Secret Sharing over a finite field Z_p.
ToyDiffieHellman
Toy Diffie-Hellman parameters (prime p, generator g).
ToyLwe
Lattice-based encryption toy model.
ToyPolyCommit
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^*.