diff --git a/src/lib.rs b/src/lib.rs index 5a61122..9591fa9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1334,6 +1334,11 @@ where UP: UserPresence, credential_key: KeyId, ) -> Result> { if let Some(hmac_secret) = &extensions.hmac_secret { + if let Some(pin_protocol) = hmac_secret.pin_protocol { + if pin_protocol != 1 { + return Err(Error::InvalidParameter); + } + } // We derive credRandom as an hmac of the existing private key. // UV is used as input data since credRandom should depend UV