#if !defined(OSSL_CRYPTO_BN_DH_H)
#define OSSL_CRYPTO_BN_DH_H
+#include <openssl/bn.h>
+
#define declare_dh_bn(x) \
extern const BIGNUM ossl_bignum_dh##x##_p; \
extern const BIGNUM ossl_bignum_dh##x##_q; \
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+#if !defined(OPENSSL_CRYPTO_BN_SRP_H)
+#define OPENSSL_CRYPTO_BN_SRP_H
#ifndef OPENSSL_NO_SRP
+#include <openssl/bn.h>
+
extern const BIGNUM ossl_bn_group_1024;
extern const BIGNUM ossl_bn_group_1536;
extern const BIGNUM ossl_bn_generator_2;
#endif
+#endif /* !defined(OPENSSL_CRYPTO_BN_SRP_H) */
#define OSSL_CRYPTO_ESS_H
#pragma once
+#include <openssl/asn1.h>
+#include <openssl/ess.h>
+#include <openssl/safestack.h>
+
/*-
* IssuerSerial ::= SEQUENCE {
* issuer GeneralNames,
#include <openssl/core_names.h>
#include <openssl/evp.h>
+#include "crypto/lms.h"
+
/*
* This LMS implementation assumes that the hash algorithm must be the same for
* LMS params and OTS params. Since OpenSSL does not have a "SHAKE256-192"
#define OSSL_CRYPTO_PKCS7_H
#pragma once
+#include <openssl/pkcs7.h>
+
void ossl_pkcs7_resolve_libctx(PKCS7 *p7);
void ossl_pkcs7_set0_libctx(PKCS7 *p7, OSSL_LIB_CTX *ctx);
#define OSSL_SECURITY_BITS_H
#pragma once
+#include <stdint.h>
+
uint16_t ossl_ifc_ffc_compute_security_bits(int n);
#endif
#pragma once
#include <stddef.h>
+#include <stdint.h>
#define SIPHASH_BLOCK_SIZE 8
#define SIPHASH_KEY_SIZE 16
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+#if !defined(OPENSSL_CRYPTO_SIV_H)
+#define OPENSSL_CRYPTO_SIV_H
#ifndef OPENSSL_NO_SIV
+#include <stddef.h>
+
+#include <openssl/evp.h>
+
typedef struct siv128_context SIV128_CONTEXT;
SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen,
int ossl_siv128_speed(SIV128_CONTEXT *ctx, int arg);
#endif /* OPENSSL_NO_SIV */
+#endif /* !defined (OPENSSL_CRYPTO_SIV_H) */
#pragma once
#include <openssl/conf.h>
+#include <openssl/types.h>
/*
* namespaces:
#define OSSL_INTERNAL_DANE_H
#pragma once
+#include <openssl/evp.h>
#include <openssl/safestack.h>
/*-
#define OPENSSL_ECH_HELPERS_H
#pragma once
+#include <stddef.h>
+#include <stdint.h>
+
#ifndef OPENSSL_NO_ECH
/*
#include <stddef.h>
#include <stdint.h>
+#include <string.h>
#include <openssl/e_os2.h>
#include <internal/rcu.h>
#include "crypto/context.h"
#define OSSL_INTERNAL_HPKE_UTIL_H
#pragma once
+#include <stdint.h>
+
+#include <openssl/hpke.h>
+#include <openssl/types.h>
+
/* Constants from RFC 9180 Section 7.1 and 7.3 */
#define OSSL_HPKE_MAX_SECRET 64
#define OSSL_HPKE_MAX_PUBLIC 133
#define OSSL_INTERNAL_PASSPHRASE_H
#pragma once
+#include <openssl/ui.h>
+
/*
* This is a passphrase reader bridge with bells and whistles.
*
enum {
QLOG_EVENT_TYPE_NONE,
-
+/* clang-format off */
#define QLOG_EVENT(cat, name) QLOG_EVENT_TYPE_##cat##_##name,
-#include "internal/qlog_events.h"
+#include "internal/qlog_events.inc"
#undef QLOG_EVENT
+ /* clang-format on */
QLOG_EVENT_TYPE_NUM
};
#define OSSL_QUIC_THREAD_ASSIST_H
#include <openssl/ssl.h>
+
+#include "internal/quic_channel.h"
#include "internal/thread.h"
#include "internal/time.h"
#ifndef OPENSSL_NO_QUIC
+#include <stddef.h>
+
+#include <openssl/ssl.h>
+
int ossl_quic_trace(int write_p, int version, int content_type,
const void *buf, size_t msglen, SSL *ssl, void *arg);
#define OSSL_INTERNAL_RING_BUF_H
#pragma once
+#include <assert.h>
+#include <string.h>
+
#include <openssl/e_os2.h> /* For 'ossl_inline' */
+#include <openssl/crypto.h>
+
#include "internal/safe_math.h"
/*
#ifndef OSSL_CRYPTO_SKEY_H
#define OSSL_CRYPTO_SKEY_H
+#include <stddef.h>
+
+#include <openssl/types.h>
+
/* Known symmetric key type definitions */
#define SKEY_TYPE_GENERIC 1 /* generic bytes container unknown key types */
#define SKEY_TYPE_AES 2 /* AES keys */
#define OSSL_INTERNAL_SM3_H
#pragma once
+#include <stddef.h>
+
#include <openssl/opensslconf.h>
#ifdef OPENSSL_NO_SM3
#define OSSL_INTERNAL_SSLCONF_H
#pragma once
+#include <stddef.h>
+
+#include <openssl/conf.h>
+
typedef struct ssl_conf_cmd_st SSL_CONF_CMD;
/*
#ifndef OSSL_INTERNAL_STATEM_H
#define OSSL_INTERNAL_STATEM_H
+#include <stddef.h>
+
+#include <openssl/e_os2.h>
+#include <openssl/ssl.h>
+
/*****************************************************************************
* *
* These enums should be considered PRIVATE to the state machine. No *
#ifndef _CRYPTO_THREADS_COMMON_H_
#define _CRYPTO_THREADS_COMMON_H_
+#include <openssl/types.h>
+
#if defined(__clang__) && defined(__has_feature)
#if __has_feature(thread_sanitizer)
#define __SANITIZE_THREAD__
#define OSSL_INTERNAL_TLSGROUPS_H
#pragma once
+#include <stdint.h>
+
+#include <openssl/e_os2.h> /* For 'ossl_inline' */
+
#define OSSL_TLS_GROUP_ID_sect163k1 0x0001
#define OSSL_TLS_GROUP_ID_sect163r1 0x0002
#define OSSL_TLS_GROUP_ID_sect163r2 0x0003
#define OSSL_INTERNAL_TO_HEX_H
#pragma once
+#include <openssl/e_os2.h>
+
static ossl_inline size_t to_hex(char *buf, uint8_t n, const char hexdig[17])
{
*buf++ = hexdig[(n >> 4) & 0xf];
#define OSSL_INTERNAL_UNICODE_H
#pragma once
+#include <openssl/e_os2.h>
+
typedef enum {
SURROGATE_MIN = 0xd800UL,
SURROGATE_MAX = 0xdfffUL,