Set initial signature counter to 1

Returning the signature counter 0 would indicate that we don’t support
signature counters or that a counter error occured.
This commit is contained in:
Robin Krahl
2026-05-31 14:58:45 +02:00
parent 3187df78a8
commit 731668e87a
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -320,7 +320,9 @@ impl PersistentState {
consecutive_pin_mismatches: 0,
pin_hash: None,
pin_code_point_length: 0,
timestamp: 0,
// Setting the signature counter to zero indicates that it is not supported or that a
// counter error occured, so we have to initialize it with a non-zero value.
timestamp: 1,
min_pin_length: 0,
min_pin_length_rp_ids: Vec::new(),
force_pin_change: false,