aboutsummaryrefslogtreecommitdiffstats
path: root/include/dlies.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-28 18:38:20 +0000
committerlloyd <[email protected]>2008-09-28 18:38:20 +0000
commit3dc4f54e780ebb5d92921d48733278412d52e2b0 (patch)
tree0e5a76b4c2c48c4fd71571ed90848edb1b780a3f /include/dlies.h
parented39cde548c5cbff3896dc4c9ab5803d1334dd29 (diff)
Split def_ops into multiple files. Modularize DLIES
Diffstat (limited to 'include/dlies.h')
-rw-r--r--include/dlies.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/include/dlies.h b/include/dlies.h
deleted file mode 100644
index ef0f4d493..000000000
--- a/include/dlies.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*************************************************
-* DLIES Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
-
-#ifndef BOTAN_DLIES_H__
-#define BOTAN_DLIES_H__
-
-#include <botan/pubkey.h>
-
-namespace Botan {
-
-/*************************************************
-* DLIES Encryption *
-*************************************************/
-class BOTAN_DLL DLIES_Encryptor : public PK_Encryptor
- {
- public:
- DLIES_Encryptor(const PK_Key_Agreement_Key&,
- const std::string& = "KDF2(SHA-160)",
- const std::string& = "HMAC(SHA-160)", u32bit = 20);
- void set_other_key(const MemoryRegion<byte>&);
- private:
- SecureVector<byte> enc(const byte[], u32bit,
- RandomNumberGenerator&) const;
- u32bit maximum_input_size() const;
- const PK_Key_Agreement_Key& key;
- SecureVector<byte> other_key;
- const std::string kdf_algo;
- const std::string mac_algo;
- const u32bit MAC_KEYLEN;
- };
-
-/*************************************************
-* DLIES Decryption *
-*************************************************/
-class BOTAN_DLL DLIES_Decryptor : public PK_Decryptor
- {
- public:
- DLIES_Decryptor(const PK_Key_Agreement_Key&,
- const std::string& = "KDF2(SHA-160)",
- const std::string& = "HMAC(SHA-160)", u32bit = 20);
- private:
- SecureVector<byte> dec(const byte[], u32bit) const;
- const PK_Key_Agreement_Key& key;
- const std::string kdf_algo;
- const std::string mac_algo;
- const u32bit MAC_KEYLEN, PUBLIC_LEN;
- };
-
-}
-
-#endif