Ticket #3424: openwrt-libgcrypt.diff

File openwrt-libgcrypt.diff, 1.3 KB (added by Simon Josefsson <simon@…>, 10 years ago)

makefile patch to disable algorithms

  • Makefile

     
    3131define Package/libgcrypt/description 
    3232        This is a general purpose cryptographic library based on the code from  
    3333        GnuPG. It provides functions for all cryptograhic building blocks:  
    34         symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash  
    35         algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all  
    36         hash algorithms), public key algorithms (RSA, ElGamal, DSA), large  
    37         integer functions, random numbers and a lot of supporting functions. 
     34        symmetric ciphers (AES, DES, Arcfour), hash algorithms (MD5, SHA-1, 
     35        RIPE-MD160, SHA-224/256, SHA-384/512), MACs (HMAC for all hash 
     36        algorithms), public key algorithms (RSA, DSA), large integer functions, 
     37        random numbers and a lot of supporting functions. Some algorithms have 
     38        been disabled to reduce size (Blowfish, CAST5, Twofish, Serpent, 
     39        RC2, SEED, Camellia, CRC, MD4, TIGER-192, Whirlpool, ElGamal, ECC). 
    3840endef 
    3941 
    4042define Build/Configure 
     
    4345                --enable-static \ 
    4446                --disable-asm \ 
    4547                --with-gpg-error-prefix="$(STAGING_DIR)/usr" \ 
     48                --enable-digests="md5 rmd160 sha1 sha256 sha512" \ 
     49                --enable-ciphers="arcfour des aes" \ 
     50                --enable-pubkey-ciphers="rsa dsa" \ 
    4651        ) 
    4752endef 
    4853