PythonExtra/ports
Damien George 8874a09119 extmod/mbedtls: Enable elliptic curve DH and DSA cryptography.
This is necessary to access sites that only support these protocols.

The rp2 port already has ECDH enabled, so this just adds ECDSA there.  The
other ports now gain both ECDH and ECDSA.  The code size increase is:

- rp2 (PICO_W): +2916 bytes flash, +24 bytes BSS
- stm32 (PYBD_SF6): +20480 bytes flash, +32 bytes data, +48 bytes BSS
- mimxrt (TEENSY41): +20708 bytes flash, +32 bytes data, +48 bytes BSS
- unix (standard x86-64): +39344 executable, +1744 bytes data, +96 BSS

This is obviously a large increase in code size.  But there doesn't seem to
be any other option because without elliptic curve cryptography devices are
partially cut off from the internet.  For use cases that require small
firmware size, they'll need to build custom firmware with a custom mbedtls
config.

Signed-off-by: Damien George <damien@micropython.org>
2022-10-22 19:08:21 +11:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 extmod: Make extmod.mk self-contained. 2022-10-11 23:31:49 +11:00
esp32 esp32: Rename machine I2C and SPI types consistently across ports. 2022-10-22 12:56:10 +11:00
esp8266 extmod: Make extmod.mk self-contained. 2022-10-11 23:31:49 +11:00
mimxrt extmod/mbedtls: Enable elliptic curve DH and DSA cryptography. 2022-10-22 19:08:21 +11:00
minimal extmod: Make extmod.mk self-contained. 2022-10-11 23:31:49 +11:00
nrf nrf: Rename machine I2C, PWM, SPI, UART types consistently across ports. 2022-10-22 12:58:54 +11:00
pic16bit all: Use += rather than = everywhere for CFLAGS/LDFLAGS/LIBS. 2022-10-11 23:17:41 +11:00
powerpc all: Use += rather than = everywhere for CFLAGS/LDFLAGS/LIBS. 2022-10-11 23:17:41 +11:00
qemu-arm py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
renesas-ra renesas-ra: Rename machine SPI type consistently across ports. 2022-10-22 12:57:58 +11:00
rp2 extmod/mbedtls: Enable elliptic curve DH and DSA cryptography. 2022-10-22 19:08:21 +11:00
samd samd: Rename machine I2C type consistently across ports. 2022-10-22 12:57:32 +11:00
stm32 extmod/mbedtls: Enable elliptic curve DH and DSA cryptography. 2022-10-22 19:08:21 +11:00
teensy extmod: Make extmod.mk self-contained. 2022-10-11 23:31:49 +11:00
unix extmod/mbedtls: Enable MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE. 2022-10-22 19:06:21 +11:00
webassembly javascript: Rename this port to 'webassembly'. 2022-08-22 12:03:39 +01:00
windows extmod: Make extmod.mk self-contained. 2022-10-11 23:31:49 +11:00
zephyr zephyr: Rename machine I2C and SPI types consistently across ports. 2022-10-22 12:58:21 +11:00