Dominik Farhan

Key setup for secure channel

Steps 2 and 3 are replaceable by Diffie-Hellman (it is recommended to hash the result of DH). This is also little bit better because it is forward secure.