Skip to content

ctap2: serialize hmac-secret pinUvAuthProtocol without PUAT#364

Open
iiTONELOC wants to merge 1 commit into
mozilla:ctap2-2021from
iiTONELOC:fix/hmac-secret-protocol-two
Open

ctap2: serialize hmac-secret pinUvAuthProtocol without PUAT#364
iiTONELOC wants to merge 1 commit into
mozilla:ctap2-2021from
iiTONELOC:fix/hmac-secret-protocol-two

Conversation

@iiTONELOC

Copy link
Copy Markdown

CTAP 2.1 section 12.5 requires hmac-secret key 4 when the negotiated shared secret uses pinUvAuthProtocol != 1.

Currently, key 4 is derived from the optional PIN/UV auth token (PUAT), causing protocol-2 requests without PUAT to be interpreted as protocol 1 or rejected with CTAP2_ERR_PIN_AUTH_INVALID.

This change derives the protocol from the negotiated SharedSecret while preserving omission for protocol 1.

Tested with cargo test --features crypto_rust --no-default-features.

@iiTONELOC iiTONELOC changed the title "ctap2: serialize hmac-secret pinUvAuthProtocol without PUAT ctap2: serialize hmac-secret pinUvAuthProtocol without PUAT Jul 20, 2026
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.

1 participant