pub struct PinUvAuthProtocolTwo { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PinUvAuthProtocol for PinUvAuthProtocolTwo
impl PinUvAuthProtocol for PinUvAuthProtocolTwo
fn version(&self) -> Ctap2PinUvAuthProtocol
Source§fn encapsulate(
&self,
peer_public_key: &PublicKey,
) -> Result<(PublicKey, Vec<u8>), Error>
fn encapsulate( &self, peer_public_key: &PublicKey, ) -> Result<(PublicKey, Vec<u8>), Error>
encapsulate(peerCoseKey) → (coseKey, sharedSecret) | error
Generates an encapsulation for the authenticator’s public key and returns the message to transmit and the
shared secret.
fn encrypt(&self, key: &[u8], plaintext: &[u8]) -> Result<Vec<u8>, Error>
fn decrypt(&self, key: &[u8], ciphertext: &[u8]) -> Result<Vec<u8>, Error>
fn authenticate(&self, key: &[u8], message: &[u8]) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for PinUvAuthProtocolTwo
impl RefUnwindSafe for PinUvAuthProtocolTwo
impl Send for PinUvAuthProtocolTwo
impl Sync for PinUvAuthProtocolTwo
impl Unpin for PinUvAuthProtocolTwo
impl UnwindSafe for PinUvAuthProtocolTwo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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