CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
OathStore.h File Reference
#include "cdc_core/IModule.h"
#include "cdc_core/SlotManager.h"
#include <cstdint>
#include <cstddef>
#include <ctime>

Go to the source code of this file.

Classes

struct  cdc::mod_2fa::OathEntry
 Unified OATH credential record (TOTP, HOTP, and reserved CR). More...
class  cdc::mod_2fa::OathStore

Namespaces

namespace  cdc
namespace  cdc::mod_2fa
namespace  cdc::mod_2fa::OathFlag
 Per-entry flag bits stored in OathEntry::flags.

Enumerations

enum class  cdc::mod_2fa::OathAlgorithm : uint8_t { cdc::mod_2fa::SHA1 = 0 , cdc::mod_2fa::SHA256 = 1 , cdc::mod_2fa::SHA512 = 2 }
 Hash algorithm used by an OATH entry's HMAC engine. More...
enum class  cdc::mod_2fa::OathType : uint8_t { cdc::mod_2fa::TOTP = 0 , cdc::mod_2fa::HOTP = 1 , cdc::mod_2fa::CR = 2 }
 OATH entry type discriminator. More...

Variables

constexpr uint8_t cdc::mod_2fa::OathFlag::TOUCH_REQUIRED = 0x01
 Require an on-device touch confirmation before answering a CR request.
constexpr uint8_t cdc::mod_2fa::OathFlag::USB_CR_SLOT = 0x02
 Designate this CR entry as the USB OTP-HID slot-2 responder.