[PATCH 02/13] Add some documentation for GCM mode

Jussi Kivilinna jussi.kivilinna at iki.fi
Wed Nov 20 18:00:07 CET 2013


* doc/gcrypt.texi: Add mention of GCM mode.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 doc/gcrypt.texi |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi
index b8ee494..1f6ceec 100644
--- a/doc/gcrypt.texi
+++ b/doc/gcrypt.texi
@@ -1642,6 +1642,12 @@ Counter with CBC-MAC mode is an Authenticated Encryption with
 Associated Data (AEAD) block cipher mode, which is specified in
 'NIST Special Publication 800-38C' and RFC 3610.
 
+ at item  GCRY_CIPHER_MODE_GCM
+ at cindex GCM, Galois/Counter Mode
+Galois/Counter Mode (GCM) is an Authenticated Encryption with
+Associated Data (AEAD) block cipher mode, which is specified in
+'NIST Special Publication 800-38D'.
+
 @end table
 
 @node Working with cipher handles
@@ -1672,9 +1678,9 @@ with some algorithms - in particular, stream mode
 block cipher modes (@code{GCRY_CIPHER_MODE_ECB},
 @code{GCRY_CIPHER_MODE_CBC}, @code{GCRY_CIPHER_MODE_CFB},
 @code{GCRY_CIPHER_MODE_OFB} and @code{GCRY_CIPHER_MODE_CTR}) will work
-with any block cipher algorithm. The @code{GCRY_CIPHER_MODE_CCM} will
-only work with block cipher algorithms which have the block size of
-16 bytes.
+with any block cipher algorithm. @code{GCRY_CIPHER_MODE_CCM} and
+ at code{GCRY_CIPHER_MODE_GCM} modes will only work with block cipher algorithms
+which have the block size of 16 bytes.
 
 The third argument @var{flags} can either be passed as @code{0} or as
 the bit-wise OR of the following constants.




More information about the Gcrypt-devel mailing list