mirror of https://github.com/arendst/Tasmota.git
006462f17e | ||
---|---|---|
.. | ||
README.md | ||
libbearssl.a |
README.md
Trimmed down version of BearSSL
Standard BearSSL lib is able to handle RSA keys up to 4096 bits and EC keys up to 521 bits. As we are limiting the use to AWS IoT, we can save hundreds of bytes of memory by limiting to 2048 bit RSA keys and 256 bits EC keys.
This is just the normal Arduino version of BearSSL
There are only two changes in src/inner.h
:
-
Line 59
#define BR_MAX_RSA_SIZE 2048
-
Line 85
#define BR_MAX_EC_SIZE 256
Then compile with
make CONF=esp8266
xtensa-lx106-elf-ar d esp8266/libbearssl.a `xtensa-lx106-elf-ar t esp8266/libbearssl.a | egrep 'i31|i32|x86|sse|pwr8|i62|m31|m32|m62|m64|ct64|ctmul64'`
Finally copy libbearssl.a
to this directory.