pub struct Webauthn<A: Algorithm, UV: UserVerification> { /* private fields */ }Implementations§
Source§impl<A, UV> Webauthn<A, UV>where
A: Algorithm,
UV: UserVerification,
impl<A, UV> Webauthn<A, UV>where
A: Algorithm,
UV: UserVerification,
Sourcepub fn verify(
public_key: &<A::Curve as Curve>::PublicKey,
challenge: impl AsRef<[u8]>,
assertion: &WebauthnAssertion,
signature: &<A::Curve as Curve>::Signature,
) -> bool
pub fn verify( public_key: &<A::Curve as Curve>::PublicKey, challenge: impl AsRef<[u8]>, assertion: &WebauthnAssertion, signature: &<A::Curve as Curve>::Signature, ) -> bool
Check that given assertion corresponds to msg and verify the
signature over it for given public key.
See https://w3c.github.io/webauthn/#sctn-verifying-assertion.
Credits to:
Auto Trait Implementations§
impl<A, UV> Freeze for Webauthn<A, UV>
impl<A, UV> RefUnwindSafe for Webauthn<A, UV>where
A: RefUnwindSafe,
UV: RefUnwindSafe,
impl<A, UV> Send for Webauthn<A, UV>
impl<A, UV> Sync for Webauthn<A, UV>
impl<A, UV> Unpin for Webauthn<A, UV>
impl<A, UV> UnsafeUnpin for Webauthn<A, UV>
impl<A, UV> UnwindSafe for Webauthn<A, UV>where
A: UnwindSafe,
UV: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more