Public value calculation
With modulus p, base g, and private exponents a and b, the demonstration forms Alice's public value A = g^a mod p and Bob's public value B = g^b mod p. The model exposes p, g, A, and B for exchange while keeping a and b on their respective sides.