<commit_before>#ifndef TLSE_H
#define TLSE_H

// #define DEBUG

// define TLS_LEGACY_SUPPORT to support TLS 1.1/1.0 (legacy)
// legacy support it will use an additional 272 bytes / context
#define TLS_LEGACY_SUPPORT
// SSL_* style blocking APIs
#define SSL_COMPATIBLE_INTERFACE
// support ChaCha20/Poly1305
#define TLS_WITH_CHACHA20_POLY1305
// support forward secrecy (Diffie-Hellman ephemeral)
#define TLS_FORWARD_SECRECY
// support client-side ECDHE
#define TLS_CLIENT_ECDHE
// suport ecdsa
#define TLS_ECDSA_SUPPORTED
// suport ecdsa client-side
// #define TLS_CLIENT_ECDSA
// TLS renegotiation is disabled by default (secured or not)
// do not uncomment next line!
// #define TLS_ACCEPT_SECURE_RENEGOTIATION
// basic superficial X509v1 certificate support
#define TLS_X509_V1_SUPPORT

// disable TLS_RSA_WITH_* ciphers
#define TLS_ROBOT_MITIGATION

#define SSL_V30                 0x0300
#define TLS_V10                 0x0301
#define TLS_V11                 0x0302
#define TLS_V12                 0x0303
#define DTLS_V10                0xFEFF
#define DTLS_V12                0xFEFD

#define TLS_NEED_MORE_DATA       0
#define TLS_GENERIC_ERROR       -1<commit_msg>Disabled chacha20 on big endian machines<commit_after>#ifndef TLSE_H
#define TLSE_H

// #define DEBUG

// define TLS_LEGACY_SUPPORT to support TLS 1.1/1.0 (legacy)
// legacy support it will use an additional 272 bytes / context
#define TLS_LEGACY_SUPPORT
// SSL_* style blocking APIs
#define SSL_COMPATIBLE_INTERFACE
// support ChaCha20/Poly1305
#if !defined(__BIG_ENDIAN__) && ((!defined(__BYTE_ORDER)) || (__BYTE_ORDER == __LITTLE_ENDIAN))
    // not working on big endian machines
    #define TLS_WITH_CHACHA20_POLY1305
#endif
// support forward secrecy (Diffie-Hellman ephemeral)
#define TLS_FORWARD_SECRECY
// support client-side ECDHE
#define TLS_CLIENT_ECDHE
// suport ecdsa
#define TLS_ECDSA_SUPPORTED
// suport ecdsa client-side
// #define TLS_CLIENT_ECDSA
// TLS renegotiation is disabled by default (secured or not)
// do not uncomment next line!
// #define TLS_ACCEPT_SECURE_RENEGOTIATION
// basic superficial X509v1 certificate support
#define TLS_X509_V1_SUPPORT

// disable TLS_RSA_WITH_* ciphers
#define TLS_ROBOT_MITIGATION

#define SSL_V30                 0x0300
#define TLS_V10                 0x0301
#define TLS_V11                 0x0302
#define TLS_V12                 0x0303
#define DTLS_V10                0xFEFF
#define DTLS_V12                0xFEFD

#define TLS_NEED_MORE_DATA       0
#define TLS_GENERIC_ERROR       -1
{'fraction_non_alphanumeric': 0.06597774244833068, 'fraction_numerical': 0.05087440381558029, 'mean_word_length': 3.3546712802768166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '147762', 'n_tokens_mistral': 975, 'n_tokens_neox': 843, 'n_words': 232}