1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

Move all SSL constants into PROGMEM, free 1.2KB (#6162)

Rewrite all the integer math operations with const input parameters to
use PROGMEM properly (pgm_read_xx or memcpy_P), and move all the EC
order and generators and SHA OIDs to PROGMEM.

This frees around 1.2KB of heap for any SSL applications.

Also delete unneeded objects from the bearssl.a library to shrink the
GIT repo size.
This commit is contained in:
Earle F. Philhower, III 2019-06-06 13:05:22 -07:00 committed by GitHub
parent 6722d1d44b
commit 6bfb1bae40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 2 deletions

View File

@ -1,2 +1,2 @@
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
#define BEARSSL_GIT 6b9587f
#define BEARSSL_GIT 0d7d5e2

Binary file not shown.

View File

@ -7,6 +7,7 @@ all T0 clean: bearssl/README.txt
install: all version-header
cp bearssl/esp8266/libbearssl.a ../lib/.
ar d ../lib/libbearssl.a `ar t ../lib/libbearssl.a | egrep 'i31|i32|x86|sse|pwr8|i62|m31|m32|m62|m64|ct64|ctmul64'` # Remove unneeded objects
cp bearssl/inc/bearssl*.h ../include/bearssl/.
bearssl/README.txt:

@ -1 +1 @@
Subproject commit 6b9587f4ac63f0ec62a7c5884b1b70496713acb3
Subproject commit 0d7d5e2e59c240703ac64e17177b044df5b3748a