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/sha1.h | #ifndef MBEDTLS_SHA1_H_
#define MBEDTLS_SHA1_H_
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/platform.h"
COSMOPOLITAN_C_START_
/* clang-format off */
/* MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED is deprecated and should not be used. */
#define MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED -0x0035 /*< SHA-1 hardwa... | 2,674 | 72 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/sigalg.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,341 | 44 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/chk.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_CHK_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_CHK_H_
#define MBEDTLS_CHK(f) \
do { \
if ((ret = (f))) goto cleanup; \
} while (0)
#endif /* COSMOPOLITAN_THIRD_PARTY_MBEDTLS_CHK_H_ */
| 276 | 10 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/getsslstatename.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 3,429 | 65 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ecdh.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,794 | 731 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/nist_kw.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,564 | 720 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/bignum_internal.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_BIGNUM_INTERNAL_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_BIGNUM_INTERNAL_H_
#include "third_party/mbedtls/platform.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define MPI_VALIDATE_RET(cond) \
MBEDTLS_INTERNAL_VALIDATE_RET(cond, MBEDTLS_ERR_MPI_BAD_INPUT_... | 1,765 | 41 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/aes.h | #ifndef MBEDTLS_AES_H_
#define MBEDTLS_AES_H_
#include "third_party/mbedtls/config.h"
COSMOPOLITAN_C_START_
/* clang-format off */
/* padlock.c and aesni.c rely on these values! */
#define MBEDTLS_AES_ENCRYPT 1 /*< AES encryption. */
#define MBEDTLS_AES_DECRYPT 0 /*< AES decryption. */
/* Error codes in range... | 26,151 | 568 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/x509write_crt.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 29,079 | 730 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/des.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 33,155 | 1,036 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/aesni.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,100 | 460 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/pk_internal.h | #ifndef MBEDTLS_PK_WRAP_H
#define MBEDTLS_PK_WRAP_H
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/pk.h"
/* clang-format off */
struct mbedtls_pk_info_t
{
/** Public key type */
mbedtls_pk_type_t type;
/** Type name */
const char *name;
/** Get key size in bits */
size_... | 3,607 | 99 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/entropy.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ENTROPY_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ENTROPY_H_
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/sha256.h"
#include "third_party/mbedtls/sha512.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#if defined(MBEDTLS_SHA512_C) && !defined(MBEDTLS_... | 4,341 | 104 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/pkwrite.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,438 | 685 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/cipher_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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 37,689 | 1,482 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_ciphersuites.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_CIPHERSUITES_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_CIPHERSUITES_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"
COSMOPOLITAN_C_START_
/* clang-format off */
... | 23,246 | 458 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_cookie.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 8,085 | 231 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/certs.h | #ifndef MBEDTLS_CERTS_H
#define MBEDTLS_CERTS_H
#include "third_party/mbedtls/config.h"
/* clang-format off */
#ifdef __cplusplus
extern "C" {
#endif
/* List of all PEM-encoded CA certificates, terminated by NULL;
* PEM encoded if MBEDTLS_PEM_PARSE_C is enabled, DER encoded
* otherwise. */
extern const char * mbedt... | 8,529 | 224 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_ticket.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,145 | 410 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ecp_internal.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ECP_INTERNAL_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ECP_INTERNAL_H_
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/ecp.h"
/* clang-format off */
#if defined(MBEDTLS_ECP_INTERNAL_ALT)
/**
* \brief Indicate if the Elliptic Curve Point modul... | 10,132 | 267 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/blake2b256.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,221 | 34 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/mdtype.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,327 | 44 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_invasive.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_INVASIVE_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_INVASIVE_H_
#include "third_party/mbedtls/common.h"
#include "third_party/mbedtls/md.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#if defined(MBEDTLS_TEST_HOOKS) && defined(MBEDTLS_SSL_SOME_SUITES_USE... | 4,020 | 77 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ecpshl.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,833 | 106 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/sha1.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,262 | 580 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/hkdf.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_HKDF_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_HKDF_H_
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/md.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/* clang-format off */
#define MBEDTLS_ERR_HKDF_BAD_INPUT_DATA -0x5F80 /*< Bad inpu... | 1,060 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ctr_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,102 | 879 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/config.h | #ifndef MBEDTLS_CONFIG_H_
#define MBEDTLS_CONFIG_H_
/* protocols */
#define MBEDTLS_SSL_PROTO_TLS1_2
#ifndef TINY
#define MBEDTLS_SSL_PROTO_TLS1_1
#define MBEDTLS_SSL_PROTO_TLS1
/*#define MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL*/
/*#define MBEDTLS_SSL_PROTO_DTLS*/
/*#define MBEDTLS_SSL_PROTO_SSL3*/
#endif
/* hash funct... | 40,874 | 1,261 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ecp.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ECP_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_ECP_H_
#include "third_party/mbedtls/bignum.h"
#include "third_party/mbedtls/config.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#define MBEDTLS_ERR_ECP_BAD_INPUT_DATA -0x4F80 /*< Bad input parameters to fun... | 18,319 | 368 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/bignum.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 97,361 | 2,836 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/error.h | #ifndef MBEDTLS_ERROR_H
#define MBEDTLS_ERROR_H
#include "third_party/mbedtls/config.h"
/* clang-format off */
/**
* Error code layout.
*
* Currently we try to keep all error codes within the negative space of 16
* bits signed integers to support all platforms (-0x0001 - -0x7FFF). In
* addition we'd like to give ... | 4,471 | 136 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_cookie.h | #ifndef MBEDTLS_SSL_COOKIE_H
#define MBEDTLS_SSL_COOKIE_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 defin... | 2,302 | 80 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_tls13_keys.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,407 | 526 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/profile.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_PROFILE_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_PROFILE_H_
#include "libc/intrin/safemacros.internal.h"
#include "libc/log/log.h"
#include "libc/nexgen32e/bench.h"
#include "libc/nexgen32e/rdtsc.h"
#if 1
#define START() \
{ \
volatile uint64_t Time = __sta... | 1,068 | 44 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_ciphersuites.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 71,584 | 1,675 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/md5.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,619 | 403 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/platform.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_PLATFORM_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_PLATFORM_H_
#include "libc/assert.h"
#include "libc/fmt/fmt.h"
#include "libc/intrin/likely.h"
#include "libc/mem/mem.h"
#include "libc/runtime/runtime.h"
#include "libc/stdio/stdio.h"
#include "third_party/mbedtls/config.h"
C... | 2,150 | 68 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_SSL_H_
#include "third_party/mbedtls/bignum.h"
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/dhm.h"
#include "third_party/mbedtls/ecdh.h"
#include "third_party/mbedtls/ecp.h"
#include "third_party/mbedtls/pl... | 81,218 | 1,543 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_srv.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 168,365 | 4,579 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/asn1parse.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,870 | 393 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/asn1write.h | #ifndef MBEDTLS_ASN1_WRITE_H_
#define MBEDTLS_ASN1_WRITE_H_
#include "third_party/mbedtls/asn1.h"
#include "third_party/mbedtls/config.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#define MBEDTLS_ASN1_CHK_ADD(g, f) \
do \
{ ... | 2,328 | 38 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/sha1t.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,501 | 118 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/asn1.h | #ifndef MBEDTLS_ASN1_H
#define MBEDTLS_ASN1_H
#include "libc/str/str.h"
#include "third_party/mbedtls/bignum.h"
#include "third_party/mbedtls/config.h"
/* clang-format off */
/**
* \addtogroup asn1_module
* \{
*/
/**
* \name ASN1 Error codes
* These error codes are OR'ed to X509 error codes for
* higher error g... | 26,120 | 597 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/getciphersuitename.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,033 | 759 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/hkdf.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 9,401 | 209 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_ticket.h | #ifndef MBEDTLS_SSL_TICKET_H
#define MBEDTLS_SSL_TICKET_H
#include "third_party/mbedtls/cipher.h"
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/ssl.h"
/* clang-format off */
/*
* This implementation of the session ticket callbacks includes key
* management, rotating the keys periodically in o... | 2,524 | 85 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/poly1305.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,704 | 568 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/x509.h | #ifndef MBEDTLS_X509_H_
#define MBEDTLS_X509_H_
#include "third_party/mbedtls/asn1.h"
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/pk.h"
#include "third_party/mbedtls/rsa.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#define MBEDTLS_ERR_X509_FEATURE_UNAVAILABLE -0x2080 /*< Una... | 12,519 | 198 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/bigmul.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,910 | 330 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/secp384r1.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 19,738 | 391 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/x509_crl.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,418 | 744 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/param.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,374 | 39 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/getciphersuite.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 3,061 | 54 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ctr_drbg.h | #ifndef MBEDTLS_CTR_DRBG_H_
#define MBEDTLS_CTR_DRBG_H_
#include "third_party/mbedtls/aes.h"
#include "third_party/mbedtls/config.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#define MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED -0x0034 /*< The entropy source failed. */
#define MBEDTLS_ERR_CTR_DRBG_REQUEST_TOO... | 20,407 | 462 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/sha512t.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,840 | 170 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/shiftright-avx.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,742 | 56 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/x509_crt.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 125,634 | 3,289 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/pem.h | #ifndef MBEDTLS_PEM_H
#define MBEDTLS_PEM_H
#include "third_party/mbedtls/config.h"
/* clang-format off */
/**
* \name PEM Error codes
* These error codes are returned in case of errors reading the
* PEM data.
* \{
*/
#define MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT -0x1080 /*< No PEM header or footer f... | 4,748 | 118 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/chachapoly.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,568 | 497 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/shiftright.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,164 | 29 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/ssl_cache.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 10,618 | 336 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/gcm.h | #ifndef MBEDTLS_GCM_H_
#define MBEDTLS_GCM_H_
#include "third_party/mbedtls/cipher.h"
#include "third_party/mbedtls/config.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#define MBEDTLS_GCM_ENCRYPT 1
#define MBEDTLS_GCM_DECRYPT 0
#define MBEDTLS_ERR_GCM_AUTH_FAILED -0x0012 /*< Authenti... | 2,367 | 40 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/pk.h | #ifndef COSMOPOLITAN_THIRD_PARTY_MBEDTLS_PK_H_
#define COSMOPOLITAN_THIRD_PARTY_MBEDTLS_PK_H_
#include "third_party/mbedtls/config.h"
#include "third_party/mbedtls/ecdsa.h"
#include "third_party/mbedtls/ecp.h"
#include "third_party/mbedtls/md.h"
#include "third_party/mbedtls/rsa.h"
COSMOPOLITAN_C_START_
/* clang-format... | 11,024 | 238 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_ssl.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 211,137 | 6,430 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_hkdf.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 13,729 | 426 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_pkwrite.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 12,162 | 431 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_cipher.chacha20.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 71,702 | 2,029 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_ccm.datax | CCM self test
0
CCM - Invalid parameters
8
CCM - Valid parameters
9
CCM init #1 AES-128: OK
depends_on:0
1:exp:0:int:128:int:0
CCM init #2 CAMELLIA-256: OK
depends_on:1
1:exp:1:int:256:int:0
CCM init #3 AES-224: bad key size
depends_on:0
1:exp:0:int:224:exp:2
CCM init #4 BLOWFISH-128: bad block size
depends_on:2
... | 120,663 | 1,527 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_cipher.blowfish.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 73,723 | 2,115 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_chachapoly.datax | ChaCha20-Poly1305 RFC 7539 Example and Test Vector (Encrypt)
0:hex:"808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f":hex:"070000004041424344454647":hex:"50515253c0c1c2c3c4c5c6c7":hex:"4c616469657320616e642047656e746c656d656e206f662074686520636c617373206f66202739393a204966204920636f756c64206f66666572207... | 6,192 | 29 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_pkcs1_v15.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 26,444 | 697 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_asn1parse.datax | Empty length
0:hex:"04":exp:0:exp:1
Incomplete length
0:hex:"0481":exp:0:exp:1
Prefixes of OCTET STRING, length=0
0:hex:"0400":int:0:int:0
Prefixes of OCTET STRING, length=0 (0 length bytes)
0:hex:"0480":exp:2:exp:2
Prefixes of OCTET STRING, length=1
0:hex:"040141":int:0:int:0
Prefixes of OCTET STRING, length=2
0:... | 18,192 | 634 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_pkcs1_v21.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 22,776 | 640 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_x509write.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 27,341 | 863 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_rsa.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 104,925 | 2,608 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_aes.ofb.datax | OFB-AES128.Encrypt - Single block
depends_on:0
12:int:16:hex:"2b7e151628aed2a6abf7158809cf4f3c":hex:"000102030405060708090a0b0c0d0e0f":hex:"6bc1bee22e409f96e93d7e117393172a":hex:"3b3fd92eb72dad20333449f8e83cfb4a"
OFB-AES128.Encrypt - Partial blocks - 7 bytes
depends_on:0
12:int:5:hex:"2b7e151628aed2a6abf7158809cf4f3c"... | 3,253 | 33 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_gcm.aes128_en.datax | AES-GCM NIST Validation (AES-128,128,0,0,128) #0 [#1]
depends_on:0
1:exp:0:hex:"1014f74310d1718d1cc8f65f033aaf83":hex:"":hex:"6bb54c9fd83c12f5ba76cc83f7650d2c":hex:"":hex:"":int:128:hex:"0b6b57db309eff920c8133b8691e0cac":int:0
AES-GCM NIST Validation (AES-128,128,0,0,128) #1 [#1]
depends_on:0
1:exp:0:hex:"d874a25f2269... | 101,909 | 681 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_rsa.datax | RSA parameter validation
0
RSA init-free-free
1:int:0
RSA init-free-init-free
1:int:1
RSA PKCS1 Verify v1.5 CAVS #1
depends_on:0:1
3:hex:"d6248c3e96b1a7e5fea978870fcc4c9786b4e5156e16b7faef4557d667f730b8bc4c784ef00c624df5309513c3a5de8ca94c2152e0459618666d3148092562ebc256ffca45b27fd2d63c68bd5e0a0aefbe496e9e63838a361b1... | 202,923 | 609 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_net.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 12,063 | 403 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_poly1305.datax | Poly1305 RFC 7539 Example And Test Vector
0:hex:"85d6be7857556d337f4452fe42d506a80103808afb0db2fd4abff6af4149f51b":hex:"a8061dc1305136c6c22b8baf0c0127a9":hex:"43727970746f6772617068696320466f72756d2052657365617263682047726f7570"
Poly1305 RFC 7539 Test Vector #1
0:hex:"00000000000000000000000000000000000000000000000000... | 4,376 | 44 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_ecp.datax | ECP valid params
0
ECP invalid params
1
ECP curve info #1
depends_on:0
2:exp:0:int:28:int:512:char*:"brainpoolP512r1"
ECP curve info #2
depends_on:1
2:exp:1:int:27:int:384:char*:"brainpoolP384r1"
ECP curve info #3
depends_on:2
2:exp:2:int:26:int:256:char*:"brainpoolP256r1"
ECP curve info #4
depends_on:3
2:exp:3:in... | 32,590 | 512 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_hmac_drbg.pr.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 21,879 | 696 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_version.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 10,521 | 373 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_aes.cbc.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 38,271 | 1,110 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_entropy.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 28,999 | 976 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_memory_buffer_alloc.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 16,071 | 584 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_error.datax | Single low error
depends_on:0
0:exp:0:char*:"AES - Invalid key length"
Single high error
depends_on:1
0:exp:1:char*:"RSA - Bad input parameters to function"
Low and high error
depends_on:0:1
0:exp:2:char*:"RSA - Bad input parameters to function \: AES - Invalid key length"
Non existing high error
0:exp:3:char*:"UNKN... | 514 | 22 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_pkparse.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 17,737 | 685 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_aes.xts.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 38,393 | 1,110 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_mdx.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 12,644 | 482 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_gcm.aes192_de.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 21,330 | 643 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_timing.datax | Timing: hardclock
0
Timing: get timer
1
Timing: set alarm with no delay
2:int:0
Timing: set alarm with 1s delay
2:int:1
Timing: delay 0ms
3:int:0
Timing: delay 100ms
3:int:100
| 182 | 19 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_aes.cbc.datax | AES-128-CBC Encrypt NIST KAT #1
2:hex:"fffffffffffff8000000000000000000":hex:"00000000000000000000000000000000":hex:"00000000000000000000000000000000":hex:"8b527a6aebdaec9eaef8eda2cb7783e5":int:0
AES-128-CBC Encrypt NIST KAT #2
2:hex:"fffffffffffffc000000000000000000":hex:"00000000000000000000000000000000":hex:"000000... | 15,354 | 217 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_pk.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 73,451 | 2,114 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_ccm.c | /* clang-format off */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 32,094 | 954 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_cipher.ccm.datax | AES-128-CCM test vector NIST #1 (P=0, N=7, A=0, T=4)
depends_on:0:1
9:exp:0:hex:"4ae701103c63deca5b5a3939d7d05992":hex:"5a8aa485c316e9":hex:"":hex:"":hex:"02209f55":char*:"":hex:"":int:0
AES-128-CCM test vector NIST #2 (P=0, N=7, A=0, T=4)
depends_on:0:1
9:exp:0:hex:"4ae701103c63deca5b5a3939d7d05992":hex:"3796cf51b872... | 64,425 | 865 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_ssl.datax | Test calback buffer sanity
0
Callback buffer test: Exercise simple write/read
1:int:50:int:25:int:25:int:25:int:25:int:0:int:0:int:0:int:0
Callback buffer test: Filling up the buffer
1:int:50:int:50:int:50:int:50:int:50:int:0:int:0:int:0:int:0
Callback buffer test: Filling up the buffer in two steps
1:int:50:int:20:... | 338,428 | 10,635 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_pkcs5.datax | PBKDF2 RFC 6070 Test Vector #1 (SHA1)
depends_on:0
0:exp:0:hex:"70617373776f7264":hex:"73616c74":int:1:int:20:hex:"0c60c80f961f0e71f3a9b524af6012062fe037a6"
PBKDF2 RFC 6070 Test Vector #2 (SHA1)
depends_on:0
0:exp:0:hex:"70617373776f7264":hex:"73616c74":int:2:int:20:hex:"ea6c014dc72d6f8ccd1ed92ace1d41f0d8de8957"
PBKD... | 12,576 | 216 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/lib.c | /*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 36,312 | 1,127 | jart/cosmopolitan | false |
cosmopolitan/third_party/mbedtls/test/test_suite_nist_kw.datax | NIST KW self test
0
NIST KW mix contexts and modes
1
NIST KW init #1 wrapping AES-128: OK
depends_on:0
2:exp:0:int:128:int:1:int:0
NIST KW init #2 unwrapping AES-128: OK
depends_on:0
2:exp:0:int:128:int:1:int:0
NIST KW init #3 CAMELLIA-256: unsupported cipher
depends_on:1
2:exp:1:int:256:int:0:exp:2
NIST KW init #... | 56,132 | 485 | jart/cosmopolitan | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.