mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 13:52:38 +03:00
890c9e87ce
* examples: plugins: utilize fal_embedded * libs: removed fnv1a_hash * furi: added FURI_PACKED; apps, libs: changed to use FURI_PACKED * lib: mbedtls: using custom config * lib: toolbox: removed md5, switched to mbedtls * targets: f18: link fix * lib: added mbedtls_cfg.h * apps: nfc: explicit dependency on libmbedtls * u2f: reworking to mbedtls * u2f: replaced sha256 & hmac with mbedtls * u2f: functional rework using mbedtls * libs: dropped micro-ecc * u2f: dropped old implementation * toolbox: removed sha256 impl * mcheck() for mbedtls * libs: removed libmisc; split into smaller libs * apps: debug: fixed display_test * apps: include cleanups * fbt: fixed VERSIONCOMSTR * furi: added FURI_CHECK_RETURN * lib: removed qrcode * cleanup * fbt: lint_py+format_py: fixed excessive command length * api: Removed bzero from f7 * api: Removed bzero from f18 * Bump API Symbols Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
92 lines
2.3 KiB
C
92 lines
2.3 KiB
C
#pragma once
|
|
|
|
/**
|
|
* A subset of the mbedTLS configuration options that are relevant to the
|
|
* Flipper Zero firmware and apps. They are built to "mbedtls" library you can
|
|
* link your apps with.
|
|
*
|
|
* If you need more features, either bring the full mbedtls library into your
|
|
* app using "fap_private_libs" or open an issue on GitHub to add them to the
|
|
* default configuration.
|
|
**/
|
|
|
|
#define MBEDTLS_HAVE_ASM
|
|
|
|
#define MBEDTLS_NO_UDBL_DIVISION
|
|
#define MBEDTLS_NO_64BIT_MULTIPLICATION
|
|
|
|
#define MBEDTLS_DEPRECATED_WARNING
|
|
|
|
#define MBEDTLS_AES_FEWER_TABLES
|
|
// #define MBEDTLS_CHECK_RETURN_WARNING
|
|
|
|
#define MBEDTLS_CIPHER_MODE_CBC
|
|
#define MBEDTLS_CIPHER_MODE_CFB
|
|
#define MBEDTLS_CIPHER_MODE_CTR
|
|
#define MBEDTLS_CIPHER_MODE_OFB
|
|
#define MBEDTLS_CIPHER_MODE_XTS
|
|
|
|
#define MBEDTLS_CIPHER_PADDING_PKCS7
|
|
#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
|
|
#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
|
|
#define MBEDTLS_CIPHER_PADDING_ZEROS
|
|
|
|
/* Short Weierstrass curves (supporting ECP, ECDH, ECDSA) */
|
|
// #define MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
|
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_SECP521R1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_SECP192K1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_SECP224K1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_BP256R1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_BP384R1_ENABLED
|
|
// #define MBEDTLS_ECP_DP_BP512R1_ENABLED
|
|
/* Montgomery curves (supporting ECP) */
|
|
// #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
|
|
// #define MBEDTLS_ECP_DP_CURVE448_ENABLED
|
|
|
|
#define MBEDTLS_ECP_NIST_OPTIM
|
|
|
|
#define MBEDTLS_GENPRIME
|
|
// #define MBEDTLS_PKCS1_V15
|
|
// #define MBEDTLS_PKCS1_V21
|
|
|
|
#define MBEDTLS_MD_C
|
|
|
|
#define MBEDTLS_ASN1_PARSE_C
|
|
#define MBEDTLS_ASN1_WRITE_C
|
|
#define MBEDTLS_BASE64_C
|
|
#define MBEDTLS_BIGNUM_C
|
|
#define MBEDTLS_OID_C
|
|
|
|
// #define MBEDTLS_CHACHA20_C
|
|
// #define MBEDTLS_CHACHAPOLY_C
|
|
#define MBEDTLS_CIPHER_C
|
|
#define MBEDTLS_DES_C
|
|
#define MBEDTLS_DHM_C
|
|
|
|
#define MBEDTLS_ECDH_C
|
|
|
|
#define MBEDTLS_ECDSA_C
|
|
#define MBEDTLS_ECP_C
|
|
|
|
#define MBEDTLS_GCM_C
|
|
|
|
#define MBEDTLS_AES_C
|
|
#define MBEDTLS_MD5_C
|
|
|
|
// #define MBEDTLS_PEM_PARSE_C
|
|
// #define MBEDTLS_PEM_WRITE_C
|
|
|
|
// #define MBEDTLS_PLATFORM_MEMORY
|
|
// #define MBEDTLS_PLATFORM_C
|
|
|
|
// #define MBEDTLS_RIPEMD160_C
|
|
// #define MBEDTLS_RSA_C
|
|
#define MBEDTLS_SHA224_C
|
|
#define MBEDTLS_SHA256_C
|
|
#define MBEDTLS_SHA1_C
|
|
|
|
#define MBEDTLS_ERROR_C |