SemiDrive SSDK Appication Program Interface PTG3.0
ecdh.h File Reference
#include <eccp_curve.h>
#include <pke.h>

Go to the source code of this file.

Enumeration Type Documentation

◆ ECDH_RET_CODE

Enumerator
ECDH_SUCCESS 
ECDH_POINTOR_NULL 
ECDH_INVALID_INPUT 

Function Documentation

◆ ecdh_compute_key()

uint32_t ecdh_compute_key ( eccp_curve_t curve,
uint8_t *  local_prikey,
uint8_t *  peer_pubkey,
uint8_t *  key,
uint32_t  keyByteLen,
KDF_FUNC  kdf 
)