mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Do work on curl/mbedtls/zstd
This change fixes stderr to be unbuffered. Added hardware AES on ARM64 to help safeguard against timing attacks. The curl.com command will be somewhat more pleasant to use.
This commit is contained in:
parent
a186143f62
commit
0d3c1c8b1a
37 changed files with 1565 additions and 290 deletions
9
third_party/mbedtls/config.h
vendored
9
third_party/mbedtls/config.h
vendored
|
@ -26,11 +26,9 @@
|
|||
|
||||
/* ciphers */
|
||||
#define MBEDTLS_AES_C
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_CHACHA20_C
|
||||
#define MBEDTLS_POLY1305_C
|
||||
#define MBEDTLS_CHACHAPOLY_C
|
||||
#endif
|
||||
#ifdef MBEDTLS_SSL_PROTO_TLS1
|
||||
#define MBEDTLS_DES_C
|
||||
#endif
|
||||
|
@ -58,9 +56,9 @@
|
|||
#define MBEDTLS_ECDSA_C
|
||||
#define MBEDTLS_ECDSA_DETERMINISTIC
|
||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
||||
#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
||||
#define MBEDTLS_DHM_C
|
||||
#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
|
||||
|
@ -73,8 +71,8 @@
|
|||
/* eliptic curves */
|
||||
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
||||
#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_ECP_DP_CURVE448_ENABLED
|
||||
/*#define MBEDTLS_ECP_DP_SECP521R1_ENABLED*/
|
||||
/*#define MBEDTLS_ECP_DP_BP384R1_ENABLED*/
|
||||
|
@ -103,10 +101,9 @@
|
|||
* Hardens against against sbox side channels
|
||||
*/
|
||||
#define MBEDTLS_AESNI_C
|
||||
#if defined(__x86_64__) && !defined(TINY)
|
||||
#define MBEDTLS_AESCE_C
|
||||
#define MBEDTLS_HAVE_X86_64
|
||||
#define MBEDTLS_HAVE_SSE2
|
||||
#endif
|
||||
|
||||
#ifndef TINY
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue