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

Go to the source code of this file.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
EdDSA_SUCCESS 
EdDSA_POINTOR_NULL 
EdDSA_INVALID_INPUT 
EdDSA_VERIFY_FAIL 

◆ Ed25519_MODE

Enumerator
Ed25519_DEFAULT 
Ed25519_CTX 
Ed25519_PH 

Function Documentation

◆ ed25519_get_pubkey_from_prikey()

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

◆ ed25519_getkey()

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

◆ ed25519_sign()

uint32_t ed25519_sign ( Ed25519_MODE  mode,
uint8_t  prikey[32],
uint8_t  pubkey[32],
uint8_t *  ctx,
uint8_t  ctxByteLen,
uint8_t *  M,
uint32_t  MByteLen,
uint8_t  RS[64] 
)

◆ ed25519_verify()

uint32_t ed25519_verify ( Ed25519_MODE  mode,
uint8_t  pubkey[32],
uint8_t *  ctx,
uint8_t  ctxByteLen,
uint8_t *  M,
uint32_t  MByteLen,
uint8_t  RS[64] 
)

Variable Documentation

◆ ed25519

const edward_curve_t ed25519[1]
extern