Have the toy server choose the suite and prove its certificate with tiny RSA arithmetic. This is toy arithmetic only, not deployable security.

cryptography This lesson follows a tiny HTTPS-like protocol sequence so every value can be checked by hand.

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\begin{array}{c|c}\text{server\_random}&\hlmath{\text{9}}\end{array}

Step 2 — Selected suite

Compute the highlighted cryptography value.

selected suiteTOY_DHE_RSA_WITH_XOR8_SUM\begin{array}{c|c}\text{selected suite}&\hlmath{\text{TOY\_DHE\_RSA\_WITH\_XOR8\_SUM}}\end{array}

Step 3 — Certificate digest

Compute the highlighted cryptography value.

certificate digest8\begin{array}{c|c}\text{certificate digest}&\hlmath{\text{8}}\end{array}

Step 4 — Verify signature

Compute the highlighted cryptography value.

signature, e, n, verified(2, 3, 55, 8)\begin{array}{c|c}\text{signature, e, n, verified}&\hlmath{\text{(2, 3, 55, 8)}}\end{array}

Step 5 — Certificate verdict

Compute the highlighted cryptography value.

verified digest vs digestmatch\begin{array}{c|c}\text{verified digest vs digest}&\hlmath{\text{match}}\end{array}