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/keyDerivation_8h-source.html | 74 +++++++++++++++++------------------ 1 file changed, 36 insertions(+), 38 deletions(-) (limited to 'doc/html/keyDerivation_8h-source.html') diff --git a/doc/html/keyDerivation_8h-source.html b/doc/html/keyDerivation_8h-source.html index 38ccb23..1d44ebb 100644 --- a/doc/html/keyDerivation_8h-source.html +++ b/doc/html/keyDerivation_8h-source.html @@ -53,44 +53,42 @@ 00034 #include "datatypes.h" 00035 #include "buffer.h" 00036 -00037 #include <string> -00038 -00039 extern "C" { -00040 #include <srtp/crypto_kernel.h> -00041 #include <gcrypt.h> -00042 } -00043 -00044 -00045 typedef enum { -00046 label_satp_encryption = 0x00, -00047 label_satp_msg_auth = 0x01, -00048 label_satp_salt = 0x02, -00049 } satp_prf_label; -00050 -00051 class KeyDerivation -00052 { -00053 public: -00054 KeyDerivation() : ld_kdr_(-1), cipher_(NULL) {}; -00055 virtual ~KeyDerivation() {}; -00056 -00057 void init(Buffer key, Buffer salt); -00058 err_status_t setLogKDRate(const uint8_t ld_rate); -00059 err_status_t generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key, uint32_t length); -00060 void clear(); -00061 -00062 static const std::string MIN_GCRYPT_VERSION; -00063 -00064 protected: -00065 int8_t ld_kdr_; // ld(key_derivation_rate) -00066 Buffer salt_; -00067 -00068 gcry_cipher_hd_t cipher_; -00069 }; -00070 -00071 const std::string MIN_GCRYPT_VERSION = "1.2.3"; -00072 -00073 #endif -
Generated on Sun Oct 7 23:43:49 2007 for anytun by  +00037 +00038 extern "C" { +00039 #include <gcrypt.h> +00040 } +00041 +00042 +00043 typedef enum { +00044 label_satp_encryption = 0x00, +00045 label_satp_msg_auth = 0x01, +00046 label_satp_salt = 0x02, +00047 } satp_prf_label; +00048 +00049 class KeyDerivation +00050 { +00051 public: +00052 KeyDerivation() : ld_kdr_(-1), cipher_(NULL) {}; +00053 virtual ~KeyDerivation() {}; +00054 +00055 void init(Buffer key, Buffer salt); +00056 void setLogKDRate(const u_int8_t ld_rate); +00057 void generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key, u_int32_t length); +00058 void clear(); +00059 +00060 +00061 protected: +00062 int8_t ld_kdr_; // ld(key_derivation_rate) +00063 Buffer salt_; +00064 static const char* MIN_GCRYPT_VERSION; +00065 +00066 gcry_cipher_hd_t cipher_; +00067 }; +00068 +00069 +00070 #endif +00071 +
Generated on Tue Nov 27 14:11:51 2007 for anytun by  doxygen 1.5.1
-- cgit v1.2.3