DKTP support header Common defined parameters and functions of the DKTP client and server implementat...
#define DKTP_ASYMMETRIC_SIGNING_KEY_SIZE
The byte size of the asymmetric signature signing-key array.
Definition dktp.h:411
#define DKTP_SECRET_SIZE
The size of the shared secret for each channel.
Definition dktp.h:310
dktp_errors
The DKTP error values.
Definition dktp.h:760
#define DKTP_ASYMMETRIC_VERIFY_KEY_SIZE
The byte size of the asymmetric signature verification-key array.
Definition dktp.h:417
#define DKTP_HASH_SIZE
The 512-bit hash function size.
Definition dktp.h:154
#define DKTP_ASYMMETRIC_ENCAPSULATION_KEY_SIZE
The byte size of the asymmetric cipher public-key array.
Definition dktp.h:405
#define DKTP_ASYMMETRIC_DECAPSULATION_KEY_SIZE
The byte size of the asymmetric cipher private-key array.
Definition dktp.h:399
#define DKTP_KEYID_SIZE
The DKTP key identity size.
Definition dktp.h:253
dktp_errors dktp_kex_client_key_exchange(dktp_kex_client_state *kcs, dktp_connection_state *cns)
Execute the client-side key exchange.
Definition kex.c:860
dktp_errors dktp_kex_server_key_exchange(dktp_kex_server_state *kss, dktp_connection_state *cns)
Execute the server-side key exchange.
Definition kex.c:1110
bool dktp_kex_test(void)
Run internal tests for the key exchange functions.
Definition kex.c:1349
The DKTP socket connection state structure.
Definition dktp.h:902
Internal state for the Duplex key exchange (client-side).
Definition kex.h:87
uint8_t enckey[DKTP_ASYMMETRIC_ENCAPSULATION_KEY_SIZE]
Definition kex.h:91
uint8_t pssr[DKTP_SECRET_SIZE]
Definition kex.h:93
uint8_t secl[DKTP_SECRET_SIZE]
Definition kex.h:96
uint8_t schash[DKTP_HASH_SIZE]
Definition kex.h:89
uint64_t expiration
Definition kex.h:98
uint8_t keyid[DKTP_KEYID_SIZE]
Definition kex.h:88
uint8_t verkey[DKTP_ASYMMETRIC_VERIFY_KEY_SIZE]
Definition kex.h:97
uint8_t deckey[DKTP_ASYMMETRIC_DECAPSULATION_KEY_SIZE]
Definition kex.h:90
uint8_t pssl[DKTP_SECRET_SIZE]
Definition kex.h:92
uint8_t sigkey[DKTP_ASYMMETRIC_SIGNING_KEY_SIZE]
Definition kex.h:95
uint8_t rverkey[DKTP_ASYMMETRIC_VERIFY_KEY_SIZE]
Definition kex.h:94
Internal state for the Duplex key exchange (server-side).
Definition kex.h:112
uint8_t enckey[DKTP_ASYMMETRIC_ENCAPSULATION_KEY_SIZE]
Definition kex.h:116
uint8_t pssr[DKTP_SECRET_SIZE]
Definition kex.h:118
uint8_t schash[DKTP_HASH_SIZE]
Definition kex.h:114
uint64_t expiration
Definition kex.h:122
uint8_t keyid[DKTP_KEYID_SIZE]
Definition kex.h:113
uint8_t verkey[DKTP_ASYMMETRIC_VERIFY_KEY_SIZE]
Definition kex.h:121
uint8_t deckey[DKTP_ASYMMETRIC_DECAPSULATION_KEY_SIZE]
Definition kex.h:115
uint8_t pssl[DKTP_SECRET_SIZE]
Definition kex.h:117
uint8_t sigkey[DKTP_ASYMMETRIC_SIGNING_KEY_SIZE]
Definition kex.h:120
uint8_t rverkey[DKTP_ASYMMETRIC_VERIFY_KEY_SIZE]
Definition kex.h:119