Example
Have the toy server choose the suite and prove its certificate with tiny RSA arithmetic.
highlighted = computed this step
Step 1 — Server random
Compute the highlighted cryptography value.
server_random9
Step 2 — Selected suite
Compute the highlighted cryptography value.
selected suiteTOY_DHE_RSA_WITH_XOR8_SUM
Step 3 — Certificate digest
Compute the highlighted cryptography value.
certificate digest8
Step 4 — Verify signature
Compute the highlighted cryptography value.
signature, e, n, verified(2, 3, 55, 8)
Step 5 — Certificate verdict
Compute the highlighted cryptography value.
verified digest vs digestmatch
cryptography
This lesson follows a tiny HTTPS-like protocol sequence so every value can be checked by hand.