# The Libgcrypt Reference Manual

### Version 1.6.1

### 29 January 2014

**Werner Koch (wk@gnupg.org)**

**Moritz Schulte (mo@g10code.com)**

This manual is for Libgcrypt (version 1.6.1, 29 January 2014), which is GNU’s library of cryptographic building blocks.

Copyright © 2000, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011, 2012 Free Software Foundation, Inc.

Copyright © 2012, 2013 g10 Code GmbH

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The text of the license can be found in the section entitled “GNU General Public License”.

[ < ] | [ > ] | [Contents] | [Index] | [ ? ] |

# The Libgcrypt Library

This manual is for Libgcrypt (version 1.6.1, 29 January 2014), which is GNU’s library of cryptographic building blocks.

Copyright © 2000, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011, 2012 Free Software Foundation, Inc.

Copyright © 2012, 2013 g10 Code GmbH

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The text of the license can be found in the section entitled “GNU General Public License”.

1 Introduction | What is Libgcrypt. | |

2 Preparation | What you should do before using the library. | |

3 Generalities | General library functions and data types. | |

4 Handler Functions | Working with handler functions. | |

5 Symmetric cryptography | How to use symmetric cryptography. | |

6 Public Key cryptography | How to use public key cryptography. | |

7 Hashing | How to use hash algorithms. | |

8 Message Authentication Codes | How to use MAC algorithms. | |

9 Key Derivation | How to derive keys from strings | |

10 Random Numbers | How to work with random numbers. | |

11 S-expressions | How to manage S-expressions. | |

12 MPI library | How to work with multi-precision-integers. | |

13 Prime numbers | How to use the Prime number related functions. | |

14 Utilities | Utility functions. | |

15 Tools | Utility tools | |

16 Architecture | How Libgcrypt works internally. | |

Appendices | ||
---|---|---|

Appendix A Description of the Self-Tests | Description of the self-tests. | |

Appendix B Description of the FIPS Mode | Description of the FIPS mode. | |

GNU Lesser General Public License | The GNU Lesser General Public License says how you can copy and share Libgcrypt. | |

GNU General Public License | The GNU General Public License says how you can copy and share some parts of Libgcrypt. | |

Indices | ||

List of Figures and Tables | Index of figures and tables. | |

Concept Index | Index of concepts and programs. | |

Function and Data Index | Index of functions, variables and data types. | |

[ < ] | [ > ] | [Contents] | [Index] | [ ? ] |

This document was generated on *February 9, 2014* using *texi2html 5.0*.