You've already forked ctap-types
mirror of
https://github.com/trussed-dev/ctap-types.git
synced 2026-03-11 16:36:28 -07:00
Add pin_protocol field to HmacSecretInput
The December 08, 2020 version of the Client to Authenticator Protocol (CTAP) specification added the pinUvAuthProtocol(0x04) field to the input data for the hmac-secret extension in the authenticatorGetAssertion command. This patch adds this new field to the HmacSecretInput struct to make it possible to parse requests using this new field. https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html Fixes #1.
This commit is contained in:
committed by
Nicolas Stalder
parent
2262ee72f1
commit
3a5197b3ea
@@ -21,7 +21,8 @@ pub struct HmacSecretInput {
|
||||
// *either* enc(salt1) *or* enc(salt1 || salt2)
|
||||
pub salt_enc: Bytes<64>,
|
||||
pub salt_auth: Bytes<16>,
|
||||
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub pin_protocol: Option<u32>
|
||||
}
|
||||
|
||||
#[derive(Clone,Debug, Eq,PartialEq,Serialize,Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user