1 // Configuration of micro-ecc for use with BTstack 2 // 3 // We only need/use SECP256R1 for LE Secure Connections 4 5 6 #ifndef BTSATCK_CONFIG_UECC_H__ 7 #define BTSATCK_CONFIG_UECC_H__ 8 9 #define uECC_CURVE uECC_secp256r1 10 #define uECC_NO_DEFAULT_RNG 11 12 // avoid warning for undefined preprocessing identifier 13 #ifndef uECC_SUPPORTS_secp256r1 14 #define uECC_SUPPORTS_secp256r1 0 15 #endif 16 17 // optimization: size vs. speed: uECC_asm_none - uECC_asm_small - uECC_asm_fast 18 #ifndef uECC_ASM 19 #define uECC_ASM uECC_asm_none 20 #endif 21 22 // don't use special square functions 23 #ifndef uECC_SQUARE_FUNC 24 #define uECC_SQUARE_FUNC 0 25 #endif 26 27 #endif 28