diff --git a/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs b/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs index 4f0f76ba3cd..c3825f7d7d0 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs @@ -27,7 +27,7 @@ use super::{ }; use crate::{ plugin::{ - crypto::{self, OwnedRequestHash, RequestHash, Signature}, + crypto::{self, OwnedRequestHash}, PluginGetAssertionRequest, PluginMakeCredentialRequest, }, ErrorKind, WinWebAuthnError, diff --git a/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs b/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs index 072c234c1f4..2d5ee56bcaf 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs @@ -195,7 +195,7 @@ fn verify_signature( padding_info .as_ref() .map(|padding: &BCRYPT_PKCS1_PADDING_INFO| std::ptr::from_ref(padding).cast()), - &hash.0, + hash.0, signature.0, bcrypt_flags, ) @@ -385,7 +385,7 @@ pub struct VerifyingKey { impl VerifyingKey { /// Verifies a signature over a request hash with the associated public key. - pub fn verify_signature( + pub(crate) fn verify_signature( &self, hash: RequestHash, signature: Signature,