libtropic
C library for TROPIC01 chip

◆ lt_ecdsa_verify()

int lt_ecdsa_verify ( const uint8_t *  msg,
const uint32_t  msg_len,
const uint8_t *  pubkey,
const uint8_t *  rs 
)
Parameters
msgMessage to be checked
msg_lenLength of the message
pubkeySigner's public key (64B)
rsR and S part of the message's signature (64B)
Returns
int 0 if signature is valid, otherwise 1