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

Go to the source code of this file.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
X25519_SUCCESS 
X25519_POINTER_NULL 
X25519_ZERO_ALL 
X25519_INVALID_INPUT 
X25519_INVALID_OUTPUT 

Function Documentation

◆ x25519_compute_key()

uint32_t x25519_compute_key ( uint8_t  local_prikey[32],
uint8_t  peer_pubkey[32],
uint8_t *  key,
uint32_t  keyByteLen,
KDF_FUNC  kdf 
)

◆ x25519_decode_scalar()

void x25519_decode_scalar ( uint8_t *  k,
uint8_t *  out,
uint32_t  bytes 
)

◆ x25519_get_pubkey_from_prikey()

uint32_t x25519_get_pubkey_from_prikey ( uint8_t  prikey[32],
uint8_t  pubkey[32] 
)

◆ x25519_getkey()

uint32_t x25519_getkey ( uint8_t  prikey[32],
uint8_t  pubkey[32] 
)

Variable Documentation

◆ c25519

const mont_curve_t c25519[1]
extern