Write phase 2 of key exchange