Quantum Secure Tunneling Protocol 1.0.0.0a (A1)
A three-party quantum secure encrypted tunneling protocol
kex.h
Go to the documentation of this file.
1/* 2025 Quantum Resistant Cryptographic Solutions Corporation
2 * All Rights Reserved.
3 *
4 * NOTICE: This software and all accompanying materials are the exclusive
5 * property of Quantum Resistant Cryptographic Solutions Corporation (QRCS).
6 * The intellectual and technical concepts contained within this implementation
7 * are proprietary to QRCS and its authorized licensors and are protected under
8 * applicable U.S. and international copyright, patent, and trade secret laws.
9 *
10 * CRYPTOGRAPHIC STANDARDS:
11 * - This software includes implementations of cryptographic algorithms such as
12 * SHA3, AES, and others. These algorithms are public domain or standardized
13 * by organizations such as NIST and are NOT the property of QRCS.
14 * - However, all source code, optimizations, and implementations in this library
15 * are original works of QRCS and are protected under this license.
16 *
17 * RESTRICTIONS:
18 * - Redistribution, modification, or unauthorized distribution of this software,
19 * in whole or in part, is strictly prohibited.
20 * - This software is provided for non-commercial, educational, and research
21 * purposes only. Commercial use in any form is expressly forbidden.
22 * - Licensing and authorized distribution are solely at the discretion of QRCS.
23 * - Any use of this software implies acceptance of these restrictions.
24 *
25 * DISCLAIMER:
26 * This software is provided "as is," without warranty of any kind, express or
27 * implied, including but not limited to warranties of merchantability or fitness
28 * for a particular purpose. QRCS disclaims all liability for any direct, indirect,
29 * incidental, or consequential damages resulting from the use or misuse of this software.
30 *
31 * FULL LICENSE:
32 * This software is subject to the **Quantum Resistant Cryptographic Solutions
33 * Proprietary License (QRCS-PL)**. The complete license terms are included
34 * in the LICENSE.txt file distributed with this software.
35 *
36 * Written by: John G. Underhill
37 * Contact: john.underhill@protonmail.com
38 */
39
40#ifndef QSTP_KEX_H
41#define QSTP_KEX_H
42
43#include "common.h"
44#include "../QSTP/qstp.h"
45
80
101
128
145
162
163#endif
164
QSTP common includes and definitions.
qstp_errors qstp_kex_client_key_exchange(qstp_kex_client_state *kcs, qstp_connection_state *cns)
Run the network client version of the key exchange.
Definition kex.c:554
qstp_errors qstp_kex_server_key_exchange(qstp_kex_server_state *kss, qstp_connection_state *cns)
Run the network server version of the key exchange.
Definition kex.c:716
QSTP support header.
#define QSTP_CERTIFICATE_SERIAL_SIZE
The length of the certificate serial number field in bytes.
Definition qstp.h:536
#define QSTP_ASYMMETRIC_SIGNING_KEY_SIZE
The byte size of the asymmetric signature signing-key array (Dilithium)
Definition qstp.h:313
#define QSTP_ASYMMETRIC_VERIFICATION_KEY_SIZE
The byte size of the asymmetric signature verification-key array (Dilithium)
Definition qstp.h:319
qstp_errors
The QSTP error values.
Definition qstp.h:875
#define QSTP_CERTIFICATE_HASH_SIZE
The size in bytes of the certificate hash.
Definition qstp.h:482
The QSTP socket connection state structure.
Definition qstp.h:1081
The QSTP client state structure.
Definition kex.h:95
uint8_t verkey[QSTP_ASYMMETRIC_VERIFICATION_KEY_SIZE]
Definition kex.h:98
uint64_t expiration
Definition kex.h:99
uint8_t serial[QSTP_CERTIFICATE_SERIAL_SIZE]
Definition kex.h:97
uint8_t schash[QSTP_CERTIFICATE_HASH_SIZE]
Definition kex.h:96
The QSTP server state structure.
Definition kex.h:119
uint8_t verkey[QSTP_ASYMMETRIC_VERIFICATION_KEY_SIZE]
Definition kex.h:125
uint8_t sigkey[QSTP_ASYMMETRIC_SIGNING_KEY_SIZE]
Definition kex.h:124
uint8_t * prikey
Definition kex.h:120
uint8_t * pubkey
Definition kex.h:121
uint64_t expiration
Definition kex.h:126
uint8_t serial[QSTP_CERTIFICATE_SERIAL_SIZE]
Definition kex.h:122
uint8_t schash[QSTP_CERTIFICATE_HASH_SIZE]
Definition kex.h:123