|
UDIF: Universal Digital Identification Framework 1.0.0.0a (A1)
A quantum-secure cryptographic identification
|
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 |
Secure session state.
Maintains the state of a secure tunnel between two UDIF entities, including encryption/decryption ciphers and sequence tracking.
| uint64_t epoch |
Ratchet epoch
| bool established |
Session established flag
| bool in_progress |
Handshake in progress
| bool initiator |
Initiator flag
| uint8_t kem_ss[UDIF_KEM_SECRET_SIZE] |
KEM shared secret
| uint64_t last_ratchet |
Last ratchet time
| uint8_t local_kem_sk[UDIF_KEM_PRIVATEKEY_SIZE] |
Local KEM secret key (initiator only)
| uint8_t local_serial[UDIF_CERTIFICATE_SERIAL_SIZE] |
Local entity serial
| uint8_t nonce_local[32U] |
Local nonce
| uint8_t nonce_remote[32U] |
Remote nonce
| uint8_t ratchet_state[UDIF_CRYPTO_HASH_SIZE] |
Ratchet state (for post-handshake forward secrecy)
| uint8_t remote_serial[UDIF_CERTIFICATE_SERIAL_SIZE] |
Remote entity serial
| qsc_rcs_state rxcpr |
RX cipher state
| uint64_t rxseq |
RX sequence number
| uint8_t session_id[UDIF_CRYPTO_HASH_SIZE] |
Session identifier
| uint8_t transcript[4096U] |
Handshake transcript
| size_t transcript_len |
Transcript length
| qsc_rcs_state txcpr |
TX cipher state
| uint64_t txseq |
TX sequence number