2 * Copyright (C) 2010 Martin Willi
4 * Copyright (C) secunet Security Networks AG
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * @defgroup gcm_aead gcm_aead
25 #include <crypto/aead.h>
27 typedef struct gcm_aead_t gcm_aead_t
;
30 * Galois/Counter Mode (GCM).
32 * Implements GCM as specified in NIST 800-38D, using AEAD semantics from
33 * RFC 5282, based on RFC4106.
38 * Implements aead_t interface.
44 * Create a gcm_aead instance.
46 * @param algo algorithm to implement, a gcm mode
47 * @param key_size key size in bytes
48 * @param salt_size size of implicit salt length
49 * @return aead, NULL if not supported
51 gcm_aead_t
*gcm_aead_create(encryption_algorithm_t algo
, size_t key_size
,
54 #endif /** GCM_AEAD_H_ @}*/