Skip to content

Commit d23e01e

Browse files
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

File tree

modules/libgcrypt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ libgcrypt_configure := \
1515
--disable-doc \
1616
--disable-static \
1717
--disable-jent-support \
18+
--enable-ciphers="aes des chacha20" \
19+
--enable-pubkey-ciphers="rsa ecc" \
20+
--enable-digests="sha1 sha256 sha512 blake2" \
1821
--with-gpg-error-prefix="$(INSTALL)" \
1922

2023
libgcrypt_target := $(MAKE_JOBS) \

0 commit comments

Comments
 (0)