summaryrefslogtreecommitdiff
path: root/cypher.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-16 14:34:53 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-16 14:34:53 +0000
commitc15f428cef737e093cafa78f806c6ffc0ccee60c (patch)
tree313ad89dbaec390106ba9fd4ca5429ee348f87b0 /cypher.h
parentadded fancy output to lua (diff)
minor changes
code cleanups
Diffstat (limited to 'cypher.h')
-rw-r--r--cypher.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cypher.h b/cypher.h
index 8acc046..52a1895 100644
--- a/cypher.h
+++ b/cypher.h
@@ -53,6 +53,8 @@ private:
virtual void cypher(u_int8_t * in, u_int8_t * out, u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id) {};
};
+//****** NullCypher ******
+
class NullCypher : public Cypher
{
public:
@@ -62,6 +64,8 @@ protected:
void cypher(u_int8_t * in, u_int8_t * out, u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id);
};
+//****** AesIcmCypher ******
+
class AesIcmCypher : public Cypher
{
public:
@@ -70,9 +74,6 @@ public:
void setKey(Buffer key);
void setSalt(Buffer salt);
- static const char* MIN_GCRYPT_VERSION;
- static const u_int32_t GCRYPT_SEC_MEM = 16384; // 16k secure memory
-
protected:
void cypher(u_int8_t * in, u_int8_t * out, u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id);
gcry_cipher_hd_t cipher_;