| lt_ret_t lt_ecc_ecdsa_sign | ( | lt_handle_t * | h, |
| const lt_ecc_slot_t | ecc_slot, | ||
| const uint8_t * | msg_hash, | ||
| const uint32_t | msg_hash_len, | ||
| uint8_t * | rs | ||
| ) |
| h | Handle for communication with TROPIC01 |
| ecc_slot | Slot containing a private key, TR01_ECC_SLOT_0 - TR01_ECC_SLOT_31 |
| msg_hash | Buffer containing a 32-byte hash of the message to sign |
| msg_hash_len | Length of the hash; must be exactly 32 bytes |
| rs | Buffer for storing a signature in a form of R and S bytes (should always have length 64 B). |
| LT_OK | Function executed successfully |
| other | Function did not execute successfully, you might use lt_ret_verbose() to get verbose encoding of returned value |