diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-16 14:34:53 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-16 14:34:53 +0000 |
commit | c15f428cef737e093cafa78f806c6ffc0ccee60c (patch) | |
tree | 313ad89dbaec390106ba9fd4ca5429ee348f87b0 /cypher.h | |
parent | added fancy output to lua (diff) |
minor changes
code cleanups
Diffstat (limited to 'cypher.h')
-rw-r--r-- | cypher.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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_; |