The elliptic curve-based Diffie-Hellman (ECDH) key agreement algorithm allows two parties to share a common secret value. The ECDH functions are defined in huecc.h.
An ECC parameters object is required to perform ECDH key agreement. The hu_ECCParamsCreate() function creates these objects. An ECC key object is also required. An RNG context is required if key generation will be performed.