#[repr(C, packed(1))]pub struct Otp {
pub uid: [u8; 6],
pub use_counter: u16,
pub timestamp: [u8; 3],
pub session_counter: u8,
pub random_number: u16,
pub crc: u16,
}Fields§
§uid: [u8; 6]The private ID, XORed with the challenge.
use_counter: u16A counter incremented each time the YubiKey is powered up.
timestamp: [u8; 3]A timestamp, encoded little-endian, starting from the time the YubiKey is powered up.
session_counter: u8A counter incremented with each response.
random_number: u16A random number (not cryptographically strong).
crc: u16CRC of the other fields.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Otp
impl RefUnwindSafe for Otp
impl Send for Otp
impl Sync for Otp
impl Unpin for Otp
impl UnwindSafe for Otp
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