From 58ff485edbe4bb93ebc922d14df24247846132b6 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Mon, 3 Dec 2007 09:42:38 +0000 Subject: added ssl tools --- doc/html/cypher_8h-source.html | 93 ++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 49 deletions(-) (limited to 'doc/html/cypher_8h-source.html') diff --git a/doc/html/cypher_8h-source.html b/doc/html/cypher_8h-source.html index 6ff5657..31dd0f8 100644 --- a/doc/html/cypher_8h-source.html +++ b/doc/html/cypher_8h-source.html @@ -60,55 +60,50 @@ 00041 } 00042 00043 -00044 #include <string> -00045 -00046 class Cypher -00047 { -00048 public: -00049 Cypher() {}; -00050 virtual ~Cypher() {}; -00051 -00052 void setKey(Buffer key) {}; -00053 void setSalt(Buffer salt) {}; -00054 void cypher(Buffer& buf, seq_nr_t seq_nr, sender_id_t sender_id); -00055 -00056 protected: -00057 void exor(Buffer& buf, const Buffer& bit_stream); -00058 virtual Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id) = 0; -00059 }; -00060 -00061 class NullCypher : public Cypher -00062 { -00063 protected: -00064 Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id); -00065 }; -00066 -00067 class AesIcmCypher : public Cypher -00068 { -00069 public: -00070 AesIcmCypher(); -00071 ~AesIcmCypher(); -00072 void setKey(Buffer key); -00073 void setSalt(Buffer salt); -00074 -00075 static const std::string MIN_GCRYPT_VERSION; -00076 static const u_int32_t GCRYPT_SEC_MEM; -00077 -00078 protected: -00079 Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id); -00080 gcry_cipher_hd_t cipher_; -00081 Buffer salt_; -00082 -00083 private: -00084 static bool gcrypt_initialized_; -00085 }; -00086 -00087 const std::string AesIcmCypher::MIN_GCRYPT_VERSION = "1.2.3"; -00088 bool AesIcmCypher::gcrypt_initialized_ = false; -00089 const u_int32_t AesIcmCypher::GCRYPT_SEC_MEM = 16384; // 16k secure memory -00090 -00091 #endif -
Generated on Sun Oct 7 23:43:49 2007 for anytun by  +00044 class Cypher +00045 { +00046 public: +00047 Cypher() {}; +00048 virtual ~Cypher() {}; +00049 +00050 void setKey(Buffer key) {}; +00051 void setSalt(Buffer salt) {}; +00052 void cypher(Buffer& buf, seq_nr_t seq_nr, sender_id_t sender_id); +00053 +00054 protected: +00055 void exor(Buffer& buf, const Buffer& bit_stream); +00056 virtual Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id) = 0; +00057 }; +00058 +00059 class NullCypher : public Cypher +00060 { +00061 protected: +00062 Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id); +00063 }; +00064 +00065 class AesIcmCypher : public Cypher +00066 { +00067 public: +00068 AesIcmCypher(); +00069 ~AesIcmCypher(); +00070 void setKey(Buffer key); +00071 void setSalt(Buffer salt); +00072 +00073 static const char* MIN_GCRYPT_VERSION; +00074 static const u_int32_t GCRYPT_SEC_MEM = 16384; // 16k secure memory +00075 +00076 protected: +00077 Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id); +00078 gcry_cipher_hd_t cipher_; +00079 Buffer salt_; +00080 +00081 private: +00082 static bool gcrypt_initialized_; +00083 }; +00084 +00085 +00086 #endif +
Generated on Tue Nov 27 14:11:51 2007 for anytun by  doxygen 1.5.1
-- cgit v1.2.3