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

Go to the source code of this file.

Enumeration Type Documentation

◆ ECDSA_RET_CODE

Enumerator
ECDSA_SUCCESS 
ECDSA_POINTOR_NULL 
ECDSA_INVALID_INPUT 
ECDSA_ZERO_ALL 
ECDSA_INTEGER_TOO_BIG 
ECDSA_VERIFY_FAILED 

Function Documentation

◆ ecdsa_sign()

uint32_t ecdsa_sign ( eccp_curve_t curve,
uint8_t *  E,
uint32_t  EByteLen,
uint8_t *  rand_k,
uint8_t *  priKey,
uint8_t *  signature 
)

◆ ecdsa_verify()

uint32_t ecdsa_verify ( eccp_curve_t curve,
uint8_t *  E,
uint32_t  EByteLen,
uint8_t *  pubKey,
uint8_t *  signature 
)