libgcrypt-1.12.2

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-1090

### Chapter 9. General Libraries

- Prev

  libdisplay-info-0.3.0

- Next

  libgpg-error-1.61

- Up
- Home

# libgcrypt-1.12.2

## Introduction to libgcrypt

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.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.bz2

- Download MD5 sum: 4e98430cfc16d842a7231026c32418da

- Download size: 4.3 MB

- Estimated disk space required: 159 MB (with tests)

- Estimated build time: 0.2 SBU (with documentation; add 0.9 SBU for tests)

### libgcrypt Dependencies

#### Required

libgpg-error-1.61

#### Optional

texlive-20250308 (or install-tl-unx)

## Installation of libgcrypt

Install libgcrypt by running the following commands:

    ./configure --prefix=/usr &&
    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, as the `root` user:

    make install &&
    install -v -dm755   /usr/share/doc/libgcrypt-1.12.2 &&
    install -v -m644    README doc/{README.apichanges,fips*,libgcrypt*} \
                        /usr/share/doc/libgcrypt-1.12.2 &&

    install -v -dm755   /usr/share/doc/libgcrypt-1.12.2/html &&
    install -v -m644 doc/gcrypt.html/* \
                        /usr/share/doc/libgcrypt-1.12.2/html &&
    install -v -m644 doc/gcrypt_nochunks.html \
                        /usr/share/doc/libgcrypt-1.12.2      &&
    install -v -m644 doc/gcrypt.{txt,texi} \
                        /usr/share/doc/libgcrypt-1.12.2

## Command Explanations

`--with-capabilities`: This option enables libcap2 support. Note that this breaks cryptsetup-2.8.6

## Contents

Installed Programs: dumpsexp, hmac256, and mpicalc
Installed Library: libgcrypt.so
Installed Directory: /usr/share/doc/libgcrypt-1.12.2

### Short Descriptions

dumpsexp | is a debug tool for S-expressions
hmac256 | is a standalone HMAC-SHA-256 implementation used to compute an HMAC-SHA-256 authentication code
mpicalc | is a RPN (Reverse Polish Notation) calculator
`libgcrypt.so` | contains the cryptographic API functions

- Prev

  libdisplay-info-0.3.0

- Next

  libgpg-error-1.61

- Up
- Home