#include "mod_2fa/OathStore.h"
#include "cdc_hal/ISecureElement.h"
#include "cdc_core/TropicStorage.h"
#include "cdc_log.h"
#include <mbedtls/md.h>
#include <cstring>
#include <ctime>
#include <cstdint>
Go to the source code of this file.
|
| static bool | cdc::mod_2fa::validateOathParams (uint8_t type, uint8_t &digits, uint32_t &period, uint8_t &algorithm) |
| | Validates OATH entry parameters and clamps to defaults when invalid.
|
| static int | cdc::mod_2fa::base32CharValue (char c) |
| | Converts one Base32 character into 5-bit value.
|
| static int | cdc::mod_2fa::base32Decode (const char *encoded, uint8_t *out, size_t outMax) |
| | Decodes Base32 secret into raw bytes.
|
| static bool | cdc::mod_2fa::writePayload (uint16_t physSlot, const char *name, uint8_t type, const char *issuer, const uint8_t *secret, uint8_t secretLen, uint8_t digits, uint32_t period, uint64_t counter, uint8_t algorithm, uint8_t flags) |
| | Builds and persists an OATH payload to a physical slot.
|
| static void | cdc::mod_2fa::formatCode (uint32_t code, uint8_t digits, char *codeOut, size_t codeOutLen) |
| | Formats a numeric code into codeOut with leading zeros.
|
◆ TAG