Commit d23e01e
committed
modules/libgcrypt: Optimize algorithm selection for 310KB space reduction
Algorithm-specific optimization targeting only required cryptographic functions:
- Ciphers: aes des chacha20 (for GPG2 and factory reset)
- Public key: rsa ecc (RSA keys and ECDSA/ECDH nistp256)
- Digests: sha1 sha256 sha512 blake2 (essential hash functions)
Space reduction:
- Baseline (stripped): 814,928 bytes
- Optimized (stripped): 497,504 bytes
- Space saved: 317,424 bytes (310KB)
- Reduction: 38.9%
Excluded unused algorithms:
- Symmetric: arcfour blowfish cast5 twofish serpent rfc2268 seed camellia idea salsa20 gost28147 sm4
- Digests: crc gostr3411-94 md4 md5 rmd160 sha3 tiger whirlpool stribog sm3
- Public key: dsa elgamal
Hardware acceleration preserved for optimal performance.
Maintains full functionality for GPG2 operations and factory reset key generation.
Signed-off-by: GitHub Copilot <noreply@github.com>
Signed-off-by: Thierry Laurion <insurgo@riseup.net>1 parent 83d9930 commit d23e01e
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments