FIDO2 CTAP utility helper. More...
FIDO2 CTAP utility helper.
Files | |
file | ctap_utils.h |
Definition for CTAP utility functions. | |
Functions | |
void | fido2_ctap_utils_led_animation (void) |
LED animation to indicate that user action is required. | |
int | 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. | |
int | fido2_ctap_utils_user_presence_test (void) |
Test user presence. | |
static int | fido2_ctap_utils_cred_cmp (const void *k1, const void *k2) |
Compare fido2 credentials based on id to find more recent one. | |
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. | |
|
inlinestatic |
Compare fido2 credentials based on id to find more recent one.
The more recent credential has a higher id. Therefore we sort in descending order.
[in] | k1 | first resident key |
[in] | k2 | second resident key |
Definition at line 66 of file ctap_utils.h.
int 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.
|
inlinestatic |
Check equality of resident keys based on rp_id_hash and user_id.
[in] | k1 | first resident key |
[in] | k2 | second resident key |
Definition at line 83 of file ctap_utils.h.
int fido2_ctap_utils_user_presence_test | ( | void | ) |
Test user presence.
Successful if user clicks button in less than CTAP_UP_TIMEOUT