Struct yubico::otpmode::Otp [−][src]
#[repr(C)] #[repr(packed)]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: u16
A 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: u8
A counter incremented with each response.
random_number: u16
A random number (not cryptographically strong).
crc: u16
CRC of the other fields.