pub struct AuthenticationResponse {
pub user_presence: Flags,
pub counter: u32,
pub signature: Vec<u8>,
}Expand description
This message is output by the U2F token after processing/signing the AuthenticationRequest
message. Its raw representation is the concatenation of its fields.
Fields§
§user_presence: FlagsWhether user presence was verified or not
counter: u32This a counter value that the U2F token increments every time it performs an authentication operation. It must be transported as big endian representation.
signature: Vec<u8>This is a ECDSA signature (on P-256) over the following byte string.
- The application parameter [32 bytes] from the authentication request message.
- The above user presence byte [1 byte].
- The above counter [4 bytes].
- The challenge parameter [32 bytes] from the authentication request message.
The signature is encoded in ANSI X9.62 format (see [ECDSA-ANSI] in bibliography). The signature is to be verified by the relying party using the public key obtained during registration.
Implementations§
Auto Trait Implementations§
impl Freeze for AuthenticationResponse
impl RefUnwindSafe for AuthenticationResponse
impl Send for AuthenticationResponse
impl Sync for AuthenticationResponse
impl Unpin for AuthenticationResponse
impl UnwindSafe for AuthenticationResponse
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