22#ifndef FIDO2_CTAP_CTAP_UTILS_H
23#define FIDO2_CTAP_CTAP_UTILS_H
72 return (_k1->
id - _k2->
id) * -1;
Internal FIDO2 CTAP defines, structures and function declarations.
Low-level GPIO peripheral driver interface definitions.
ctap_status_code_t fido2_ctap_utils_init_gpio_pin(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank)
Initialize button to be used for user presence test.
static int fido2_ctap_utils_cred_cmp(const void *k1, const void *k2)
Compare fido2 credentials based on id to find more recent one.
ctap_status_code_t fido2_ctap_utils_user_presence_test(void)
Test user presence.
void fido2_ctap_utils_led_animation(void)
LED animation to indicate that user action is required.
static bool fido2_ctap_utils_ks_equal(const ctap_resident_key_t *k1, const ctap_resident_key_t *k2)
Check equality of resident keys based on rp_id_hash and user_id.
ctap_status_code_t
CTAP status codes.
gpio_mode_t
Available pin modes.
CTAP resident key struct.
uint8_t user_id[CTAP_USER_ID_MAX_SIZE]
id of user
uint16_t id
internal id of key
uint8_t rp_id_hash[SHA256_DIGEST_LENGTH]
hash of rp domain string