Write phase 1 of key exchange