implement EC key handling and ECDH.