aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/transforms/crypters/aes_crypter.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/transforms/crypters/aes_crypter.h')
-rw-r--r--Source/charon/transforms/crypters/aes_crypter.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/Source/charon/transforms/crypters/aes_crypter.h b/Source/charon/transforms/crypters/aes_crypter.h
new file mode 100644
index 000000000..588946577
--- /dev/null
+++ b/Source/charon/transforms/crypters/aes_crypter.h
@@ -0,0 +1,50 @@
+/**
+ * @file aes_crypter.h
+ *
+ * @brief Interface of aes_crypter_t
+ *
+ */
+
+
+#ifndef _AES_CRYPTER_H_
+#define _AES_CRYPTER_H_
+
+#include <transforms/crypters/crypter.h>
+
+
+typedef struct aes_crypter_t aes_crypter_t;
+
+/**
+ * @brief Class implementing the AES symmetric encryption algorithm.
+ *
+ * @ingroup crypters
+ */
+struct aes_crypter_t {
+
+ /**
+ * crypter_t interface.
+ */
+ crypter_t crypter_interface;
+
+ /**
+ * @brief Destroys a aes_crypter_t object.
+ *
+ * @param this crypter_t object to destroy
+ * @return
+ * - SUCCESS in any case
+ */
+ status_t (*destroy) (aes_crypter_t *this);
+};
+
+/**
+ * @brief Constructor to create aes_crypter_t objects.
+ *
+ * @return
+ * - aes_crypter_t if successfully
+ * - NULL if out of ressources
+ */
+aes_crypter_t *aes_crypter_create();
+
+
+
+#endif //_AES_CRYPTER_H_