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
§impl<S> SignerExt for S
impl<S> SignerExt for S
§fn public_key<C>(&self) -> <C as Curve>::PublicKeywhere
C: Curve,
Self: Signer<C>,
fn public_key<C>(&self) -> <C as Curve>::PublicKeywhere
C: Curve,
Self: Signer<C>,
Get the public key of the signer on a curve
C. Read more§fn sign<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<<C as Curve>::Signature, Self::Error>> + Sendwhere
C: Curve,
Self: Signer<C>,
fn sign<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<<C as Curve>::Signature, Self::Error>> + Sendwhere
C: Curve,
Self: Signer<C>,
Sign a given message and return a signature. Read more
§fn sign_recoverable<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(<C as Curve>::Signature, <C as RecoverableCurve>::RecoveryId), Self::Error>> + Sendwhere
C: RecoverableCurve,
Self: RecoverableSigner<C>,
fn sign_recoverable<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(<C as Curve>::Signature, <C as RecoverableCurve>::RecoveryId), Self::Error>> + Sendwhere
C: RecoverableCurve,
Self: RecoverableSigner<C>,
Sign a given message and return a signature along with recovery id. Read more
§fn cache_public_key<C>(self) -> CachePublicKey<C, Self>where
C: Curve,
Self: Sized + Signer<C>,
fn cache_public_key<C>(self) -> CachePublicKey<C, Self>where
C: Curve,
Self: Sized + Signer<C>,
Calculate
.public_key() and cache its value for
further invocations. Read more