Libgcrypt
{{Short description|Cryptographic software library}}
{{DISPLAYTITLE:Libgcrypt}}
{{Infobox software
| name = Libgcrypt
| logo =
| screenshot =
| caption =
| ver layout = stacked
| developer = GnuPG community{{cite web|url=https://dev.gnupg.org/source/libgcrypt/browse/master/AUTHORS|title=AUTHORS|access-date=2021-02-09}}
| author = Werner Koch
| programming language = C
| operating system = Cross-platform
| genre = Cryptographic library
| license = GNU Lesser General Public License (LGPLv2.1+) / GNU General Public License (GPLv2+){{cite web
| url=https://gnupg.org/software/libgcrypt/index.html#sec-1-2
| title=Copying
| work=Libgcrypt
| date=2021-02-04
| accessdate=2021-02-09}}
| website = {{URL|https://gnupg.org/software/libgcrypt/}}
}}
Libgcrypt is a cryptography library developed as a separated module of GnuPG.{{cite mailing list
| last=Koch
| first=Werner
| url=https://lists.gnupg.org/pipermail/gnupg-devel/1998-December/015041.html
| title=libgcrypt
| publisher=gnupg-devel
| date=1998-12-04
| accessdate=2017-08-30}}
It can also be used independently of GnuPG, but depends on its error-reporting library Libgpg-error.{{cite web
| url=https://gnupg.org/software/libgpg-error/index.html
| title=Libgpg-error
| work=GnuPG software
| date=2017-03-22
| accessdate=2017-12-13}}
It provides functions for all fundamental cryptographic building blocks:
Libgcrypt features its own multiple precision arithmetic implementation, with assembler implementations for a variety of processors, including Alpha, AMD64, HP PA-RISC, i386, i586, M68K, MIPS 3, PowerPC, and SPARC. It also features an entropy gathering utility, coming in different versions for Unix-like and Windows machines.
Usually multiple, stable branches of Libgcrypt are maintained in parallel; since 2022-03-28 this is the Libgrypt 1.10 branch as stable branch, plus the 1.8 branch as LTS ("long-term support") branch, which will be maintained at least until 2024-12-31.{{cite web
| url=https://gnupg.org/download/#end-of-life
| title=End-of-life dates for GnuPG and Libgcrypt
| work=GnuPG software
| date=2021-02-04
| accessdate=2021-02-07}}
See also
{{Portal|Free and open-source software}}