Loading...
Searching...
No Matches
ctap_state_t Struct Reference

CTAP state struct. More...

Detailed Description

CTAP state struct.

state of authenticator. Stored in flash memory

Definition at line 402 of file ctap.h.

#include <ctap.h>

Data Fields

ctap_config_t config
 configuration of authenticator
 
ctap_crypto_key_agreement_key_t ag_key
 Platform key agreement key.
 
int rem_pin_att
 remaining PIN tries
 
uint16_t rk_amount_stored
 total number of resident keys stored on device
 
uint8_t initialized_marker
 CTAP initialized marker.
 
uint8_t pin_hash [SHA256_DIGEST_LENGTH/2]
 LEFT(SHA-256(pin), 16)
 
uint8_t cred_key [CTAP_CRED_KEY_LEN]
 AES CCM encryption key for cred.
 
bool cred_key_is_initialized
 AES CCM key initialized flag.
 
bool pin_is_set
 PIN is set or not.
 
uint32_t id_cnt
 id counter for credential id
 

Field Documentation

◆ ag_key

ctap_crypto_key_agreement_key_t ctap_state_t::ag_key

Platform key agreement key.

Definition at line 404 of file ctap.h.

◆ config

ctap_config_t ctap_state_t::config

configuration of authenticator

Definition at line 403 of file ctap.h.

◆ cred_key

uint8_t ctap_state_t::cred_key[CTAP_CRED_KEY_LEN]

AES CCM encryption key for cred.

Definition at line 409 of file ctap.h.

◆ cred_key_is_initialized

bool ctap_state_t::cred_key_is_initialized

AES CCM key initialized flag.

Definition at line 410 of file ctap.h.

◆ id_cnt

uint32_t ctap_state_t::id_cnt

id counter for credential id

Definition at line 412 of file ctap.h.

◆ initialized_marker

uint8_t ctap_state_t::initialized_marker

CTAP initialized marker.

Definition at line 407 of file ctap.h.

◆ pin_hash

uint8_t ctap_state_t::pin_hash[SHA256_DIGEST_LENGTH/2]

LEFT(SHA-256(pin), 16)

Definition at line 408 of file ctap.h.

◆ pin_is_set

bool ctap_state_t::pin_is_set

PIN is set or not.

Definition at line 411 of file ctap.h.

◆ rem_pin_att

int ctap_state_t::rem_pin_att

remaining PIN tries

Definition at line 405 of file ctap.h.

◆ rk_amount_stored

uint16_t ctap_state_t::rk_amount_stored

total number of resident keys stored on device

Definition at line 406 of file ctap.h.


The documentation for this struct was generated from the following file: