path
stringlengths
14
112
content
stringlengths
0
6.32M
size
int64
0
6.32M
max_lines
int64
1
100k
repo_name
stringclasses
2 values
autogenerated
bool
1 class
cosmopolitan/third_party/mbedtls/rando.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,172
31
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/sha512.h
#ifndef MBEDTLS_SHA512_H_ #define MBEDTLS_SHA512_H_ #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/platform.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_SHA512_HW_ACCEL_FAILED -0x0039 /*< SHA-512 hardware accelerator failed */ #define MBEDTLS_ERR_SHA512_BAD_INPUT_DATA -0...
2,627
67
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/memory_buffer_alloc.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
19,942
719
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ssl_tls.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
307,671
8,183
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/md.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
21,429
601
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/mbedtls.mk
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐ #───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘ PKGS += THIRD_PARTY_MBEDTLS THIRD_PARTY_MBEDTLS_ARTIFACTS += THIRD_PARTY_MBEDTLS_A THIRD_PARTY_MBEDTLS = $(THIRD_PARTY...
3,061
89
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
11,358
203
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/certs.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
108,871
1,751
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/x509_csr.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
13,510
431
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/memory_buffer_alloc.h
#ifndef MBEDTLS_MEMORY_BUFFER_ALLOC_H #define MBEDTLS_MEMORY_BUFFER_ALLOC_H #include "third_party/mbedtls/config.h" /* clang-format off */ /** * \name SECTION: Module settings * * The configuration options you can set for this module are in this section. * Either change them in config.h or define them on the compi...
4,148
121
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/sha256.h
#ifndef MBEDTLS_SHA256_H_ #define MBEDTLS_SHA256_H_ #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/platform.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_SHA256_HW_ACCEL_FAILED -0x0037 /*< SHA-256 hardware accelerator failed */ #define MBEDTLS_ERR_SHA256_BAD...
2,583
63
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/version.h
#ifndef MBEDTLS_VERSION_H #define MBEDTLS_VERSION_H #include "third_party/mbedtls/config.h" /* clang-format off */ /** * The version number x.y.z is split into three parts. * Major, Minor, Patchlevel */ #define MBEDTLS_VERSION_MAJOR 2 #define MBEDTLS_VERSION_MINOR 26 #define MBEDTLS_VERSION_PATCH 0 /** * The s...
2,413
82
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/iana.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_IANA_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_IANA_H_ #include "third_party/mbedtls/ssl.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ bool IsCipherSuiteGood(uint16_t); const char *GetCipherSuiteName(uint16_t); const char *GetAlertDescription(unsigned char); ...
513
15
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/x509_csr.h
#ifndef MBEDTLS_X509_CSR_H_ #define MBEDTLS_X509_CSR_H_ #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/x509.h" COSMOPOLITAN_C_START_ /* clang-format off */ /** * Certificate Signing Request (CSR) structure. */ typedef struct mbedtls_x509_csr { mbedtls_x509_buf raw; /*< The raw CS...
2,860
54
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/md5.h
#ifndef MBEDTLS_MD5_H_ #define MBEDTLS_MD5_H_ #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/platform.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_MD5_HW_ACCEL_FAILED -0x002F /*< MD5 hardware accelerator failed */ /** * \brief MD5 context structure * * \warni...
2,187
65
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/gcm.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
44,587
1,116
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/sha256t.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
5,528
145
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/pem.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
15,700
410
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/entropy_poll.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,171
32
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/pk_wrap.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
21,933
651
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/rsa.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
93,683
2,537
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecdsa.h
#ifndef MBEDTLS_ECDSA_H_ #define MBEDTLS_ECDSA_H_ #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/ecp.h" #include "third_party/mbedtls/md.h" COSMOPOLITAN_C_START_ /* clang-format off */ /** * \brief Maximum ECDSA signature size for a given curve bit size * * \param bits Curve si...
21,697
464
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/endian.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ENDIAN_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ENDIAN_H_ #define Read32be(S) \ ({ \ const uint8_t *Ptr = (S); \ ((uint32_t)Ptr[0] << 030 | (uint32_t...
2,872
67
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/dhm.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
22,049
729
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/aesni.h
#ifndef MBEDTLS_AESNI_H_ #define MBEDTLS_AESNI_H_ #include "third_party/mbedtls/aes.h" #include "third_party/mbedtls/config.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_AESNI_AES 0x02000000u #define MBEDTLS_AESNI_CLMUL 0x00000002u int mbedtls_aesni_crypt_ecb( mbedtls_aes_context *, int, con...
642
18
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/rsa_internal.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
16,410
511
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/asn1write.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
25,810
671
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/des.h
#ifndef MBEDTLS_DES_H #define MBEDTLS_DES_H #include "third_party/mbedtls/config.h" /* clang-format off */ #define MBEDTLS_DES_ENCRYPT 1 #define MBEDTLS_DES_DECRYPT 0 #define MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH -0x0032 /*< The data input has an invalid length. */ /* MBEDTLS_ERR_DES_HW_ACCEL_FA...
10,291
320
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecdh_everest.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_X25519_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_X25519_H_ #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/ecp.h" COSMOPOLITAN_C_START_ #define MBEDTLS_ECP_TLS_CURVE25519 0x1d #define MBEDTLS_X25519_KEY_SIZE_BYTES 32 typedef enum { MBEDTLS_EVEREST_...
1,952
44
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/getalertdescription.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,278
84
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/x509_crl.h
#ifndef MBEDTLS_X509_CRL_H #define MBEDTLS_X509_CRL_H #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/x509.h" /* clang-format off */ #ifdef __cplusplus extern "C" { #endif /** * \addtogroup x509_module * \{ */ /** * \name Structures and functions for parsing CRLs * \{ */ /** * Certificat...
4,418
145
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/hmac_drbg.h
#ifndef MBEDTLS_HMAC_DRBG_H_ #define MBEDTLS_HMAC_DRBG_H_ #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/md.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_HMAC_DRBG_REQUEST_TOO_BIG -0x0003 /*< Too many random requested in single call. */ #define MBEDTLS_ERR_HMA...
2,988
61
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/nist_kw.h
#ifndef MBEDTLS_NIST_KW_H #define MBEDTLS_NIST_KW_H #include "third_party/mbedtls/cipher.h" #include "third_party/mbedtls/config.h" /* clang-format off */ #ifdef __cplusplus extern "C" { #endif typedef enum { MBEDTLS_KW_MODE_KW = 0, MBEDTLS_KW_MODE_KWP = 1 } mbedtls_nist_kw_mode_t; #if !defined(MBEDTLS_NIST_...
6,105
142
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/san.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SAN_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SAN_H_ #include "third_party/mbedtls/x509_crt.h" COSMOPOLITAN_C_START_ struct mbedtls_san { int tag; union { const char *val; uint32_t ip4; }; }; int mbedtls_x509write_crt_set_subject_alternative_name( mbedtls_x...
448
19
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/md5t.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,304
111
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ssl_cache.h
#ifndef MBEDTLS_SSL_CACHE_H #define MBEDTLS_SSL_CACHE_H #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/ssl.h" /* clang-format off */ /** * \name SECTION: Module settings * * The configuration options you can set for this module are in this section. * Either change them in config.h or define ...
3,213
115
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/isciphersuitegood.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,538
51
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/chacha20.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
24,502
630
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecdh_everest.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
11,202
281
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/entropy.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
23,495
727
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecp256.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
18,383
562
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/README.cosmo
DESCRIPTION Mbed TLS is a crypto library built by ARM that's been released under a more permissive license than alternatives like OpenSSL and is useful for interoperating with systems that require TLS SOURCE https://github.com/ARMmbed/mbedtls/archive/refs/tags/v2.26.0.tar.gz LICENSE Apache 2.o LOCAL CHA...
2,375
62
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/x509.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
24,719
844
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/base64.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
11,614
306
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/bigmul4.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,385
76
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/check.inc
/* clang-format off */ #if defined(TARGET_LIKE_MBED) && \ ( defined(MBEDTLS_NET_C) || defined(MBEDTLS_TIMING_C) ) #error "The NET and TIMING modules are not available for mbed OS - please use the network and timing functions provided by mbed OS" #endif #if defined(MBEDTLS_DEPRECATED_WARNING) && \ !defined(__G...
29,003
695
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/karatsuba.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
6,067
165
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/everest.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
9,228
270
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/pkparse.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
52,697
1,553
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/rsa.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_RSA_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_RSA_H_ #include "third_party/mbedtls/bignum.h" #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/md.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* clang-format off */ /* * RSA Error codes *...
51,919
1,009
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/debug.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
13,405
414
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/debug.h
#ifndef MBEDTLS_DEBUG_H #define MBEDTLS_DEBUG_H #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/ecp.h" #include "third_party/mbedtls/ssl.h" COSMOPOLITAN_C_START_ #ifdef MBEDTLS_DEBUG_C #define MBEDTLS_DEBUG_STRIP_PARENS(...) __VA_ARGS__ #define MBEDTLS_SSL_DEBUG_MSG(level, args) ...
12,438
299
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/bignum.h
#ifndef MBEDTLS_BIGNUM_H_ #define MBEDTLS_BIGNUM_H_ #include "libc/stdio/stdio.h" #include "third_party/mbedtls/bignum_internal.h" #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/platform.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_MPI_FILE_IO_ERROR -0x...
8,969
192
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/common.h
#ifndef MBEDTLS_LIBRARY_COMMON_H #define MBEDTLS_LIBRARY_COMMON_H #include "third_party/mbedtls/config.h" #ifdef MBEDTLS_TEST_HOOKS #define MBEDTLS_STATIC_TESTABLE #else #define MBEDTLS_STATIC_TESTABLE static #endif #endif /* MBEDTLS_LIBRARY_COMMON_H */
256
12
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ccm.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_CCM_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_CCM_H_ #include "third_party/mbedtls/cipher.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define MBEDTLS_ERR_CCM_BAD_INPUT \ -0x000D /*< Bad input parameters to the function. */ #define MBEDTLS_ERR_CCM_AUTH_FAI...
2,474
54
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/select.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SELECT_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SELECT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ static inline uint64_t Select(uint64_t a, uint64_t b, uint64_t mask) { return (CONCEAL("r", mask) & a) | (CONCEAL("r", ~mask) & b); } COSMOPOLITAN_C_END_ ...
423
13
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecp_curves.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
61,168
1,509
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/rsa_internal.h
#ifndef MBEDTLS_RSA_INTERNAL_H #define MBEDTLS_RSA_INTERNAL_H #include "third_party/mbedtls/bignum.h" #include "third_party/mbedtls/config.h" /* clang-format off */ #ifdef __cplusplus extern "C" { #endif /** * \brief Compute RSA prime moduli P, Q from public modulus N=PQ * and a pair of pr...
6,766
166
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/secp256r1.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,959
212
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/san.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,100
90
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/error.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
35,714
729
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/sha512.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
17,008
459
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/speed.sh
#!/bin/sh make -j8 o//third_party/mbedtls || exit run() { echo $1 $1 } ( run o//third_party/mbedtls/test/test_suite_aes.cbc.com run o//third_party/mbedtls/test/test_suite_aes.cfb.com run o//third_party/mbedtls/test/test_suite_aes.ecb.com run o//third_party/mbedtls/test/test_suite_aes.ofb.com run o//thir...
4,131
81
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/x509_create.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
14,823
396
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/srtp.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,427
36
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/math.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_MATH_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_MATH_H_ #define ADC(R, A, B, CI, CO) \ do { \ uint64_t Ta = A; \ uint64_t Tb = B; \ CO = (Ta += CI) < CI; \ CO += (Ta += Tb) < Tb; \ R = Ta; \ } ...
897
33
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/chacha20.h
#ifndef MBEDTLS_CHACHA20_H_ #define MBEDTLS_CHACHA20_H_ #include "third_party/mbedtls/config.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA -0x0051 /*< Invalid input parameter(s). */ typedef struct mbedtls_chacha20_context { uint32_t state[16]; /*! The...
1,164
27
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecdh.h
#ifndef MBEDTLS_ECDH_H #define MBEDTLS_ECDH_H #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/ecdh_everest.h" #include "third_party/mbedtls/ecp.h" /* clang-format off */ #ifdef __cplusplus extern "C" { #endif /** * Defines the source of the imported EC key. */ typedef enum { MBEDTLS_ECDH_O...
16,990
401
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ssl_msg.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
231,490
6,330
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/x509write_csr.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
15,848
402
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/pkcs5.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
14,589
365
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecp.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
146,506
3,806
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ssl_cli.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
145,850
4,076
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/platform.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,935
26
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/bigshift.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,988
124
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/entropy_poll.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ENTROPY_POLL_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ENTROPY_POLL_H_ COSMOPOLITAN_C_START_ int mbedtls_null_entropy_poll(void *, unsigned char *, size_t, size_t *); int mbedtls_platform_entropy_poll(void *, unsigned char *, size_t, size_t *); int mbedtls_hardclock_poll(void...
810
16
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/oid.h
#ifndef MBEDTLS_OID_H #define MBEDTLS_OID_H #include "third_party/mbedtls/asn1.h" #include "third_party/mbedtls/cipher.h" #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/md.h" #include "third_party/mbedtls/pk.h" /* clang-format off */ #define MBEDTLS_ERR_OID_NOT_FOUND -0x0...
33,000
601
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/pk.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
27,835
722
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecp384.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
20,054
608
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/md.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_MD_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_MD_H_ #include "third_party/mbedtls/config.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE -0x5080 /*< The selected feature is not available. */ #define MBEDTLS_ERR_MD_BAD_...
11,616
301
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/base64.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_BASE64_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_BASE64_H_ #include "third_party/mbedtls/config.h" COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A /*< Output buffer too small. */ #define MBEDTLS_ERR_BASE64_INVALID_CHARACTER ...
664
16
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/everest.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_EVEREST_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_EVEREST_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void curve25519(uint8_t[32], const uint8_t[32], const uint8_t[32]); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLI...
358
11
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/pktype.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,387
43
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/net_sockets.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
20,130
519
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/zeroize.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,084
27
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ssl_internal.h
#ifndef MBEDTLS_SSL_INTERNAL_H #define MBEDTLS_SSL_INTERNAL_H #include "third_party/mbedtls/cipher.h" #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/md5.h" #include "third_party/mbedtls/sha1.h" #include "third_party/mbedtls/sha256.h" #include "third_party/mbedtls/sha512.h" #include "third_party/m...
45,448
1,100
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/cipher.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
52,682
1,566
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/sha256.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
18,074
512
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ssl_tls13_keys.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_TLS13_KEYS_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_TLS13_KEYS_H_ #include "third_party/mbedtls/md.h" #include "third_party/mbedtls/ssl_internal.h" COSMOPOLITAN_C_START_ #define MBEDTLS_SSL_TLS1_3_CONTEXT_UNHASHED 0 #define MBEDTLS_SSL_TLS1_3_CONTEXT_HASHED 1 /* T...
4,069
84
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ecdsa.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
32,776
972
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/ccm.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
28,489
716
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/cipher_internal.h
#ifndef MBEDTLS_CIPHER_WRAP_H #define MBEDTLS_CIPHER_WRAP_H #include "third_party/mbedtls/cipher.h" #include "third_party/mbedtls/config.h" COSMOPOLITAN_C_START_ /* clang-format off */ /** * Base cipher information. The non-mode specific functions and values. */ struct mbedtls_cipher_base_t { /** Base Cipher typ...
2,940
90
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/poly1305.h
#ifndef MBEDTLS_POLY1305_H #define MBEDTLS_POLY1305_H #include "third_party/mbedtls/config.h" /* clang-format off */ #define MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA -0x0057 /*< Invalid input parameter(s). */ /* MBEDTLS_ERR_POLY1305_FEATURE_UNAVAILABLE is deprecated and should not be * used. */ #define MBEDTLS_ER...
5,692
152
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/hmac_drbg.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
31,294
802
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/cipher.h
#ifndef MBEDTLS_CIPHER_H #define MBEDTLS_CIPHER_H #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/platform.h" /* clang-format off */ #define MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE -0x6080 /*< The selected feature is not available. */ #define MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA -0x6100 /*< ...
48,248
992
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/oid.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
28,376
761
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/aes.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
70,681
1,893
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/net_sockets.h
#ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_NET_SOCKETS_H_ #define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_NET_SOCKETS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* clang-format off */ #define MBEDTLS_ERR_NET_SOCKET_FAILED -0x0042 /*< Failed to open a socket. */ #define MBEDTLS_ERR_NET_C...
3,552
59
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/formatclientciphers.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,548
42
jart/cosmopolitan
false
cosmopolitan/third_party/mbedtls/x509_crt.h
#ifndef MBEDTLS_X509_CRT_H_ #define MBEDTLS_X509_CRT_H_ #include "third_party/mbedtls/bignum.h" #include "third_party/mbedtls/config.h" #include "third_party/mbedtls/x509.h" #include "third_party/mbedtls/x509_crl.h" COSMOPOLITAN_C_START_ /* clang-format off */ /** * Container for an X.509 certificate. The certificate...
17,117
357
jart/cosmopolitan
false