Skip to content

Commit 6bfb1ba

Browse files
Move all SSL constants into PROGMEM, free 1.2KB (esp8266#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.
1 parent 6722d1d commit 6bfb1ba

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
2-
#define BEARSSL_GIT 6b9587f
2+
#define BEARSSL_GIT 0d7d5e2

tools/sdk/lib/libbearssl.a

-1.17 MB
Binary file not shown.

tools/sdk/ssl/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ all T0 clean: bearssl/README.txt
77

88
install: all version-header
99
cp bearssl/esp8266/libbearssl.a ../lib/.
10+
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
1011
cp bearssl/inc/bearssl*.h ../include/bearssl/.
1112

1213
bearssl/README.txt:

0 commit comments

Comments
 (0)