|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_core/PinManager.h"#include "cdc_core/feature_flags.h"#include "cdc_hal/ISecureElement.h"#include "cdc_log.h"#include "mbedtls/sha256.h"#include "mbedtls/ecdsa.h"#include "mbedtls/ecp.h"#include "mbedtls/bignum.h"#include "esp_random.h"#include "esp_timer.h"#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::core |
Functions | |
| static bool | cdc::core::verify_payload_signature (hal::ISecureElement *se, const uint8_t *payload, size_t payload_len, const uint8_t *sig, size_t sig_len) |
| Loads serialized PIN/KDF state from secure-element R-Memory. | |
Variables | |
| static const char * | TAG = "PinManager" |
| static constexpr size_t | SHA256_DIGEST_SIZE = 32 |
| Size of a SHA-256 digest in bytes (FIPS 180-4). | |
|
staticconstexpr |
Size of a SHA-256 digest in bytes (FIPS 180-4).
Definition at line 23 of file PinManager.cpp.
|
static |
PinManager Implementation
PIN storage in TROPIC01 R-Memory Slot 0 Combined format for Badge/FIDO2 and OpenPGP PINs
Definition at line 20 of file PinManager.cpp.