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 413 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 415 of file ctap.h.

◆ config

ctap_config_t ctap_state_t::config

configuration of authenticator

Definition at line 414 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 420 of file ctap.h.

◆ cred_key_is_initialized

bool ctap_state_t::cred_key_is_initialized

AES CCM key initialized flag.

Definition at line 421 of file ctap.h.

◆ id_cnt

uint32_t ctap_state_t::id_cnt

id counter for credential id

Definition at line 423 of file ctap.h.

◆ initialized_marker

uint8_t ctap_state_t::initialized_marker

CTAP initialized marker.

Definition at line 418 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 419 of file ctap.h.

◆ pin_is_set

bool ctap_state_t::pin_is_set

PIN is set or not.

Definition at line 422 of file ctap.h.

◆ rem_pin_att

int ctap_state_t::rem_pin_att

remaining PIN tries

Definition at line 416 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 417 of file ctap.h.


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