summaryrefslogtreecommitdiff
path: root/src/libstrongswan/crypto/aead.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/crypto/aead.h')
-rw-r--r--src/libstrongswan/crypto/aead.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/aead.h b/src/libstrongswan/crypto/aead.h
index f3959f8f3..c887f53bb 100644
--- a/src/libstrongswan/crypto/aead.h
+++ b/src/libstrongswan/crypto/aead.h
@@ -1,4 +1,7 @@
/*
+ * Copyright (C) 2013 Tobias Brunner
+ * Hochschule fuer Technik Rapperswil
+ *
* Copyright (C) 2010 Martin Willi
* Copyright (C) 2010 revosec AG
*
@@ -26,6 +29,7 @@ typedef struct aead_t aead_t;
#include <library.h>
#include <crypto/crypters/crypter.h>
#include <crypto/signers/signer.h>
+#include <crypto/iv/iv_gen.h>
/**
* Authenticated encryption / authentication decryption interface.
@@ -89,6 +93,13 @@ struct aead_t {
size_t (*get_iv_size)(aead_t *this);
/**
+ * Get the IV generator implementation
+ *
+ * @return IV generator
+ */
+ iv_gen_t *(*get_iv_gen)(aead_t *this);
+
+ /**
* Get the size of the key material (for encryption and authentication).
*
* @return key size in bytes