Skip to content

Implement initial and max usage timer for PIN tokens - #78

Merged
robin-nitrokey merged 1 commit into
mainfrom
token-timers
Oct 28, 2026
Merged

robin-nitrokey merged 1 commit into
mainfrom
token-timers

Conversation

@robin-nitrokey

Copy link
Copy Markdown
Member

This follows the behavior specified in § 6.5.2.1 of the spec.

One important point to mention is that I chose a constant initial usage time limit of 19 seconds for all transports. The spec mandates at most 30 seconds for USB and at most 19.8 seconds for NFC and smart-card transports. 19 seconds thus complies with the spec, should still be enough for all real-world application and removes the need to keep track of the transport of the current request.

Depends on trussed-dev/trussed#238 for the tests.

Comment thread src/ctap2/pin.rs Resolved
This follows the behavior specified in § 6.5.2.1 of the spec.
@robin-nitrokey
robin-nitrokey merged commit 6a95d44 into main Oct 28, 2026
4 checks passed
@robin-nitrokey
robin-nitrokey deleted the token-timers branch October 28, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants