Write phase 3 of key exchange