|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Unified OATH credential record (TOTP, HOTP, and reserved CR). More...
#include <OathStore.h>
Public Attributes | |
| uint8_t | type |
| OathType discriminator. | |
| char | name [16+1] |
| Account label. | |
| char | issuer [32+1] |
| Optional issuer text. | |
| uint8_t | secret [64] |
| Raw HMAC key. | |
| uint8_t | secretLen |
| Valid bytes in secret. | |
| uint8_t | algorithm |
| OathAlgorithm value. | |
| uint8_t | digits |
| Output digit count (TOTP/HOTP). | |
| uint32_t | period |
| TOTP step in seconds (TOTP only). | |
| uint64_t | counter |
| Moving factor (HOTP only). | |
| uint8_t | flags |
| Reserved entry flags. | |
Unified OATH credential record (TOTP, HOTP, and reserved CR).
Definition at line 42 of file OathStore.h.
| uint8_t cdc::mod_2fa::OathEntry::algorithm |
OathAlgorithm value.
Definition at line 48 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::challengeResponse(), cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::generateCode(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| uint64_t cdc::mod_2fa::OathEntry::counter |
Moving factor (HOTP only).
Definition at line 51 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::cmd_totp_get(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::generateCode(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| uint8_t cdc::mod_2fa::OathEntry::digits |
Output digit count (TOTP/HOTP).
Definition at line 49 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::generateCode(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| uint8_t cdc::mod_2fa::OathEntry::flags |
Reserved entry flags.
Definition at line 52 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::challengeResponse(), cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::findUsbCrSlot(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| char cdc::mod_2fa::OathEntry::issuer[32+1] |
Optional issuer text.
Definition at line 45 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::cmd_totp_get(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| char cdc::mod_2fa::OathEntry::name[16+1] |
Account label.
Definition at line 44 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::challengeResponseUsbSlot(), cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| uint32_t cdc::mod_2fa::OathEntry::period |
TOTP step in seconds (TOTP only).
Definition at line 50 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::generateCode(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| uint8_t cdc::mod_2fa::OathEntry::secret[64] |
Raw HMAC key.
Definition at line 46 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::challengeResponse(), cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::generateCode(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| uint8_t cdc::mod_2fa::OathEntry::secretLen |
Valid bytes in secret.
Definition at line 47 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::challengeResponse(), cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::generateCode(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().
| uint8_t cdc::mod_2fa::OathEntry::type |
OathType discriminator.
Definition at line 43 of file OathStore.h.
Referenced by cdc::mod_2fa::OathStore::challengeResponse(), cdc::mod_2fa::OathStore::clearUsbCrFlagExcept(), cdc::mod_2fa::cmd_totp_get(), cdc::mod_2fa::cmd_totp_list(), cdc::mod_2fa::TwoFaModule::exportBackup(), cdc::mod_2fa::OathStore::findUsbCrSlot(), cdc::mod_2fa::OathStore::generateCode(), cdc::mod_2fa::OathStore::readAccount(), and cdc::mod_2fa::wizardEdit().