change ctap_atomic_count to increase by user-specified amount

This commit is contained in:
Conor Patrick
2019-10-08 11:35:35 -04:00
parent 8e0eda8ed4
commit bb2929b28f
3 changed files with 12 additions and 19 deletions

View File

@@ -61,8 +61,8 @@ int ctap_user_presence_test(uint32_t delay);
int ctap_generate_rng(uint8_t * dst, size_t num);
// Increment atomic counter and return it.
// Must support two counters, @sel selects counter0 or counter1.
uint32_t ctap_atomic_count(int sel);
// @param amount the amount to increase the counter by.
uint32_t ctap_atomic_count(uint32_t amount);
// Verify the user
// return 1 if user is verified, 0 if not