Rewrote CryptoSample.

ECDH now works they way it is supposed to, minus challenge response
(still need to work on that).