Libtropic API
SDK for the TROPIC01 secure element
Version: master (latest)
Loading...
Searching...
No Matches

◆ lt_ecc_eddsa_sign()

lt_ret_t lt_ecc_eddsa_sign ( lt_handle_t h,
const lt_ecc_slot_t  ecc_slot,
const uint8_t *  msg,
const uint16_t  msg_len,
uint8_t *  rs 
)
Parameters
hHandle for communication with TROPIC01
ecc_slotSlot containing a private key, TR01_ECC_SLOT_0 - TR01_ECC_SLOT_31
msgBuffer containing a message to sign, max length is 4096B
msg_lenLength of the message
rsBuffer for storing a signature in a form of R and S bytes (should always have length 64B)
Return values
LT_OKFunction executed successfully
otherFunction did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value