oath_authenticator/lib.rs
1#![cfg_attr(not(test), no_std)]
2
3#[macro_use]
4extern crate delog;
5generate_macros!();
6
7#[macro_use(hex)]
8extern crate hex_literal;
9
10pub mod authenticator;
11pub use authenticator::Authenticator;
12pub mod calculate;
13pub mod command;
14pub use command::Command;
15pub mod oath;
16pub mod state;
17
18// https://git.io/JfWuD
19pub const YUBICO_RID: [u8; 5] = hex!("A000000 527");
20// pub const YUBICO_OTP_PIX: [u8; 3] = hex!("200101");
21// pub const YUBICO_OTP_AID: &[u8] = &hex!("A000000527 2001 01");
22pub const YUBICO_OATH_AID: &[u8] = &hex!("A000000527 2101");// 01");
23
24// class AID(bytes, Enum):
25// OTP = b'\xa0\x00\x00\x05\x27 \x20\x01'
26// MGR = b'\xa0\x00\x00\x05\x27\x47\x11\x17'
27// OPGP = b'\xd2\x76\x00\x01\x24\x01'
28// OATH = b'\xa0\x00\x00\x05\x27 \x21\x01'
29// PIV = b'\xa0\x00\x00\x03\x08'
30// U2F = b'\xa0\x00\x00\x06\x47\x2f\x00\x01' # Official
31// U2F_YUBICO = b'\xa0\x00\x00\x05\x27\x10\x02' # Yubico - No longer used