UDIF: Universal Digital Identification Framework 1.0.0.0a (A1)
A quantum-secure cryptographic identification
udif_session_state Struct Reference

Secure session state. More...

#include <transport.h>

Data Fields

qsc_rcs_state txcpr
qsc_rcs_state rxcpr
uint64_t txseq
uint64_t rxseq
uint64_t epoch
uint64_t last_ratchet
uint8_t local_serial [UDIF_CERTIFICATE_SERIAL_SIZE]
uint8_t remote_serial [UDIF_CERTIFICATE_SERIAL_SIZE]
uint8_t session_id [UDIF_CRYPTO_HASH_SIZE]
uint8_t ratchet_state [UDIF_CRYPTO_HASH_SIZE]
bool established
bool initiator
struct { 
   uint8_t   local_kem_sk [UDIF_KEM_PRIVATEKEY_SIZE] 
   uint8_t   kem_ss [UDIF_KEM_SECRET_SIZE] 
   uint8_t   nonce_local [32U] 
   uint8_t   nonce_remote [32U] 
   uint8_t   transcript [4096U] 
   size_t   transcript_len 
   bool   in_progress 
handshake

Detailed Description

Secure session state.

Maintains the state of a secure tunnel between two UDIF entities, including encryption/decryption ciphers and sequence tracking.

Field Documentation

◆ epoch

uint64_t epoch

Ratchet epoch

◆ established

bool established

Session established flag

◆ in_progress

bool in_progress

Handshake in progress

◆ initiator

bool initiator

Initiator flag

◆ kem_ss

uint8_t kem_ss[UDIF_KEM_SECRET_SIZE]

KEM shared secret

◆ last_ratchet

uint64_t last_ratchet

Last ratchet time

◆ local_kem_sk

uint8_t local_kem_sk[UDIF_KEM_PRIVATEKEY_SIZE]

Local KEM secret key (initiator only)

◆ local_serial

uint8_t local_serial[UDIF_CERTIFICATE_SERIAL_SIZE]

Local entity serial

◆ nonce_local

uint8_t nonce_local[32U]

Local nonce

◆ nonce_remote

uint8_t nonce_remote[32U]

Remote nonce

◆ ratchet_state

uint8_t ratchet_state[UDIF_CRYPTO_HASH_SIZE]

Ratchet state (for post-handshake forward secrecy)

◆ remote_serial

uint8_t remote_serial[UDIF_CERTIFICATE_SERIAL_SIZE]

Remote entity serial

◆ rxcpr

qsc_rcs_state rxcpr

RX cipher state

◆ rxseq

uint64_t rxseq

RX sequence number

◆ session_id

uint8_t session_id[UDIF_CRYPTO_HASH_SIZE]

Session identifier

◆ transcript

uint8_t transcript[4096U]

Handshake transcript

◆ transcript_len

size_t transcript_len

Transcript length

◆ txcpr

qsc_rcs_state txcpr

TX cipher state

◆ txseq

uint64_t txseq

TX sequence number


The documentation for this struct was generated from the following file:
  • C:/Users/stepp/Documents/Visual Studio 2022/Projects/C/UDIF/UDIF/Saved/transport.h