summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2011-02-14 14:28:46 +0100
committerNiels Möller <nisse@lysator.liu.se>2011-02-14 14:28:46 +0100
commit73b85dd005efa7fe259192ca00b9cc17c508210a (patch)
tree2bd12c7741bd97427ee80fd86d926031151d3d0f
parent6e11deb887a299ade375786c89dd805e517b8efe (diff)
downloadnettle-73b85dd005efa7fe259192ca00b9cc17c508210a.tar.gz
* nettle-internal.c (nettle_gcm_aes128): New const struct.
(nettle_gcm_aes192): Likewise. (nettle_gcm_aes256): Likewise. Rev: nettle/nettle-internal.c:1.4
-rw-r--r--nettle-internal.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/nettle-internal.c b/nettle-internal.c
index 9018ebb4..b97281aa 100644
--- a/nettle-internal.c
+++ b/nettle-internal.c
@@ -32,8 +32,9 @@
#include <stdlib.h>
#include "nettle-internal.h"
-#include "des.h"
#include "blowfish.h"
+#include "des.h"
+#include "gcm.h"
/* DES uses a different signature for the key set function. We ignore
the return value incicating weak keys. */
@@ -75,3 +76,10 @@ nettle_des3 = {
blowfish_set_key has no return value. */
const struct nettle_cipher
nettle_blowfish128 = _NETTLE_CIPHER(blowfish, BLOWFISH, 128);
+
+const struct nettle_aead
+nettle_gcm_aes128 = _NETTLE_AEAD(gcm, GCM, aes, 128);
+const struct nettle_aead
+nettle_gcm_aes192 = _NETTLE_AEAD(gcm, GCM, aes, 192);
+const struct nettle_aead
+nettle_gcm_aes256 = _NETTLE_AEAD(gcm, GCM, aes, 256);