The libgcrypt package contains a general purpose crypto library based on the code used in GnuPG. The library provides a high level interface to cryptographic building blocks using an extendable and flexible API.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.11.2.tar.bz2
Download SHA256 Sum: 6ba59dd192270e8c1d22ddb41a07d95dcdbc1f0fb02d03c4b54b235814330aac
Download MD5 sum: 84ce2ad07794b987fe6341b63cf5f537
Download size: 4.0 MB
Estimated disk space required: 147 MB (with tests)
Estimated build time: 0.2 SBU (with documentation; add 0.9 SBU for tests)
libcap-2.77 with PAM "texlive" (or "tl-installer")
Prepare libgcrypt by running the following commands:
./configure --prefix=/usr
To Build libgcrypt, issue:
make make -C doc html makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi
To test the results, issue:
make check
Now Install, as the root user:
make install
install -v -dm755 /usr/share/doc/libgcrypt-1.11.2
install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
/usr/share/doc/libgcrypt-1.11.2
install -v -dm755 /usr/share/doc/libgcrypt-1.11.2/html
install -v -m644 doc/gcrypt.html/* \
/usr/share/doc/libgcrypt-1.11.2/html
install -v -m644 doc/gcrypt_nochunks.html \
/usr/share/doc/libgcrypt-1.11.2
install -v -m644 doc/gcrypt.{txt,texi} \
/usr/share/doc/libgcrypt-1.11.2
--with-capabilities: This option enables libcap2 support.
Note that this breaks "cryptsetup"