Skip to content
04Connected Networks StudioPSUT · Networking and Communication
Connected Networks Studio

CR71 · ElGamal signature mathematics

Use a prime p, primitive root g and private x; y=g^x mod p. Choose k coprime to p−1. r=g^k mod p and s=k⁻¹(h−xr) mod (p−1). Verify g^h ≡ y^r r^s (mod p). The small example is for arithmetic only; never use these parameters or chosen signing nonces in real systems. For p=19, g=10, x=5, k=5, h=7, compute k inverse modulo 18 and both sides of the verification equation.

Available on another course website

Full content is maintained in IoT Security and Privacy. Configure its deployment URL in course-hosts.js.

Open owning course →

Return to this course catalogue