Alice and Bob have ordinary DH public values, but those values are not yet tied to identity.

highlighted = computed this step

Honest DH sends public values

Alice would publish A=8 and Bob would publish B=19.

A=8B=19A=8\quad B=19
Honest public valuesUnauthenticated DH replacement values are recomputed from p, g, a, b, and Eve's exponent.Honest public values - E=9quantityvaluee (Eve secret)10E=g^e mod p9Eve-Alice secret3Alice computes E^a3Eve-Bob secret6Bob computes E^b6real A-B shared never forms2

Those values need identity

The arithmetic does not say who sent the public value. Without authentication, a middle person can swap the value in transit.

public value needs identity\text{public value needs identity}
Honest public valuesUnauthenticated DH replacement values are recomputed from p, g, a, b, and Eve's exponent.Honest public values - E=9quantityvaluee (Eve secret)10E=g^e mod p9Eve-Alice secret3Alice computes E^a3Eve-Bob secret6Bob computes E^b6real A-B shared never forms2

The honest shared value exists only off to the side

If Alice and Bob used each other's real public values, the shared value would be 2.

honest shared=2\text{honest shared}=2
Honest public valuesUnauthenticated DH replacement values are recomputed from p, g, a, b, and Eve's exponent.Honest public values - E=9quantityvaluee (Eve secret)10E=g^e mod p9Eve-Alice secret3Alice computes E^a3Eve-Bob secret6Bob computes E^b6real A-B shared never forms2

Summary

The honest public values are visible, but the transcript still needs a way to prove whose value arrived.

identity is missing\text{identity is missing}
Honest public valuesUnauthenticated DH replacement values are recomputed from p, g, a, b, and Eve's exponent.Honest public values - E=9quantityvaluee (Eve secret)10E=g^e mod p9Eve-Alice secret3Alice computes E^a3Eve-Bob secret6Bob computes E^b6real A-B shared never forms2