Skip to content

Commit

Permalink
libgcrypt module: remove disable-asm
Browse files Browse the repository at this point in the history
Idea is to be able to generate keys in memory and take advantage of cpu extensions where available.

By disabling --disable-asm in libgcrypt 1.10.1:

config.status: executing gcrypt-conf commands

        Libgcrypt v1.10.1 has been configured as follows:

        Platform:                  GNU/Linux (x86_64-pc-linux-musl)
        Hardware detection module: libgcrypt_la-hwf-x86
        Enabled cipher algorithms: arcfour blowfish cast5 des aes twofish
                                   serpent rfc2268 seed camellia idea salsa20
                                   gost28147 chacha20 sm4
        Enabled digest algorithms: crc gostr3411-94 md4 md5 rmd160 sha1
                                   sha256 sha512 sha3 tiger whirlpool stribog
                                   blake2 sm3
        Enabled kdf algorithms:    s2k pkdf2 scrypt
        Enabled pubkey algorithms: dsa elgamal rsa ecc
        Random number generator:   default
        Try using jitter entropy:  yes
        Using linux capabilities:  no
        FIPS module version:
        Try using Padlock crypto:  yes
        Try using AES-NI crypto:   yes
        Try using Intel SHAEXT:    yes
        Try using Intel PCLMUL:    yes
        Try using Intel SSE4.1:    yes
        Try using DRNG (RDRAND):   yes
        Try using Intel AVX:       yes
        Try using Intel AVX2:      yes
        Try using ARM NEON:        n/a
        Try using ARMv8 crypto:    n/a
        Try using PPC crypto:      n/a

    To support PPC crypto, it seems we will need yasm.
    To support linux capabilities, libcap would be required as well later on. :/ another point for rng-tools (which also depends on libcap-ng)

As on master otherwise with --disable-asm:

config.status: executing gcrypt-conf commands

        Libgcrypt v1.10.1 has been configured as follows:

        Platform:                  GNU/Linux (x86_64-pc-linux-musl)
        Hardware detection module: none
        Enabled cipher algorithms: arcfour blowfish cast5 des aes twofish
                                   serpent rfc2268 seed camellia idea salsa20
                                   gost28147 chacha20 sm4
        Enabled digest algorithms: crc gostr3411-94 md4 md5 rmd160 sha1
                                   sha256 sha512 sha3 tiger whirlpool stribog
                                   blake2 sm3
        Enabled kdf algorithms:    s2k pkdf2 scrypt
        Enabled pubkey algorithms: dsa elgamal rsa ecc
        Random number generator:   default
        Try using jitter entropy:  yes
        Using linux capabilities:  no
        FIPS module version:
        Try using Padlock crypto:  n/a
        Try using AES-NI crypto:   n/a
        Try using Intel SHAEXT:    n/a
        Try using Intel PCLMUL:    n/a
        Try using Intel SSE4.1:    n/a
        Try using DRNG (RDRAND):   n/a
        Try using Intel AVX:       n/a
        Try using Intel AVX2:      n/a
        Try using ARM NEON:        n/a
        Try using ARMv8 crypto:    n/a
        Try using PPC crypto:      n/a
  • Loading branch information
tlaurion committed Oct 2, 2023
1 parent 4f2d999 commit 94dc35e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/libgcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ libgcrypt_configure := \
--prefix "/" \
--disable-static \
--with-gpg-error-prefix="$(INSTALL)" \
--disable-asm \
--disable-doc \

libgcrypt_target := $(MAKE_JOBS) \
Expand Down

0 comments on commit 94dc35e

Please sign in to comment.