The RSA algorithm document describes the steps to generate a public/private key pair for encryption and decryption. It involves selecting two large prime numbers p and q, computing n as their product, and using n along with the prime factors to calculate the private key exponent d that corresponds to the public key exponent e, such that ed = 1 mod φ(n). The example demonstrates computing the values for a specific case where p=3 and q=11.
The Diffie-Hellman key exchange document describes a protocol where Alice and Bob can establish a shared secret key over an insecure channel. It involves Alice generating a public value gx mod p and Bob generating a public value gy mod p, then each uses the other