forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
6722d1d
commit 6bfb1ba
Showing
4 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule bearssl
updated
30 files
+5 −5 | src/ec/ec_c25519_i15.c | |
+5 −5 | src/ec/ec_c25519_m15.c | |
+2 −2 | src/ec/ec_curve25519.c | |
+13 −13 | src/ec/ec_prime_i15.c | |
+2 −2 | src/ec/ec_secp256r1.c | |
+2 −2 | src/ec/ec_secp384r1.c | |
+2 −2 | src/ec/ec_secp521r1.c | |
+1 −1 | src/ec/ecdsa_i15_vrfy_raw.c | |
+1 −1 | src/int/i15_add.c | |
+4 −4 | src/int/i15_decmod.c | |
+1 −1 | src/int/i15_decode.c | |
+2 −2 | src/int/i15_decred.c | |
+2 −2 | src/int/i15_encode.c | |
+2 −2 | src/int/i15_fmont.c | |
+2 −2 | src/int/i15_iszero.c | |
+8 −8 | src/int/i15_moddiv.c | |
+3 −3 | src/int/i15_modpow.c | |
+5 −5 | src/int/i15_modpow2.c | |
+15 −15 | src/int/i15_montmul.c | |
+6 −6 | src/int/i15_mulacc.c | |
+5 −5 | src/int/i15_muladd.c | |
+5 −5 | src/int/i15_reduce.c | |
+1 −1 | src/int/i15_sub.c | |
+1 −1 | src/int/i15_tmont.c | |
+8 −6 | src/ssl/ssl_ccert_single_rsa.c | |
+2 −2 | src/ssl/ssl_hs_client.c | |
+2 −2 | src/ssl/ssl_hs_client.t0 | |
+1 −1 | src/ssl/ssl_hs_server.c | |
+1 −1 | src/ssl/ssl_hs_server.t0 | |
+8 −6 | src/ssl/ssl_scert_single_rsa.c |