libtropic
C library for TROPIC01 chip
|
lt_ret_t lt_ecc_ecdsa_sign | ( | lt_handle_t * | h, |
const ecc_slot_t | ecc_slot, | ||
const uint8_t * | msg, | ||
const uint32_t | msg_len, | ||
uint8_t * | rs | ||
) |
h | Device's handle |
ecc_slot | Slot containing a private key, ECC_SLOT_0 - ECC_SLOT_31 |
msg | Buffer containing a message |
msg_len | Length of msg's buffer |
rs | Buffer for storing a signature in a form of R and S bytes (should always have length 64B) |
LT_OK | Function executed successfully |
other | Function did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value |