diff options
author | lloyd <[email protected]> | 2008-09-28 23:48:00 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 23:48:00 +0000 |
commit | 9666371a05c73a93706ad58191aab68eb8dac9aa (patch) | |
tree | 40ffafce29142682b975638c6c07af0b2a3c5926 /src | |
parent | d4647b485a4123f0163ae541439af3f21e26b101 (diff) |
Move get_pbe into lookup.h to avoid cyclical dependency
Diffstat (limited to 'src')
-rw-r--r-- | src/filters/modinfo.txt | 1 | ||||
-rw-r--r-- | src/filters/pbe.h | 33 | ||||
-rw-r--r-- | src/get_pbe.cpp | 2 | ||||
-rw-r--r-- | src/pk/dl_algo/modinfo.txt | 1 | ||||
-rw-r--r-- | src/pk/dl_group/modinfo.txt | 5 | ||||
-rw-r--r-- | src/pk/if_algo/modinfo.txt | 6 | ||||
-rw-r--r-- | src/pkcs8.cpp | 2 |
7 files changed, 48 insertions, 2 deletions
diff --git a/src/filters/modinfo.txt b/src/filters/modinfo.txt index d21c864b5..d11585662 100644 --- a/src/filters/modinfo.txt +++ b/src/filters/modinfo.txt @@ -23,5 +23,6 @@ filter.h filters.h out_buf.h pipe.h +pbe.h secqueue.h </add> diff --git a/src/filters/pbe.h b/src/filters/pbe.h new file mode 100644 index 000000000..4761f79d9 --- /dev/null +++ b/src/filters/pbe.h @@ -0,0 +1,33 @@ +/************************************************* +* PBE Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_PBE_BASE_H__ +#define BOTAN_PBE_BASE_H__ + +#include <botan/asn1_oid.h> +#include <botan/data_src.h> +#include <botan/filter.h> +#include <botan/rng.h> + +namespace Botan { + +/************************************************* +* Password Based Encryption * +*************************************************/ +class BOTAN_DLL PBE : public Filter + { + public: + virtual void set_key(const std::string&) = 0; + virtual void new_params(RandomNumberGenerator& rng) = 0; + + virtual MemoryVector<byte> encode_params() const = 0; + virtual void decode_params(DataSource&) = 0; + + virtual OID get_oid() const = 0; + }; + +} + +#endif diff --git a/src/get_pbe.cpp b/src/get_pbe.cpp index 0839d4d98..6bd85b3e1 100644 --- a/src/get_pbe.cpp +++ b/src/get_pbe.cpp @@ -3,9 +3,9 @@ * (C) 1999-2007 Jack Lloyd * *************************************************/ +#include <botan/lookup.h> #include <botan/pbe.h> #include <botan/oids.h> -#include <botan/lookup.h> #include <botan/parsing.h> #if defined(BOTAN_HAS_PBE_PKCS_V15) diff --git a/src/pk/dl_algo/modinfo.txt b/src/pk/dl_algo/modinfo.txt index 755ab8682..d3368765a 100644 --- a/src/pk/dl_algo/modinfo.txt +++ b/src/pk/dl_algo/modinfo.txt @@ -11,5 +11,6 @@ dl_algo.h <requires> asn1 +bigint dl_group </requires> diff --git a/src/pk/dl_group/modinfo.txt b/src/pk/dl_group/modinfo.txt index 4d2d6f13c..62446091f 100644 --- a/src/pk/dl_group/modinfo.txt +++ b/src/pk/dl_group/modinfo.txt @@ -8,3 +8,8 @@ define DL_GROUP dl_group.cpp dl_group.h </add> + +<requires> +asn1 +bigint +</requires> diff --git a/src/pk/if_algo/modinfo.txt b/src/pk/if_algo/modinfo.txt index f4ddd565f..e8d582c00 100644 --- a/src/pk/if_algo/modinfo.txt +++ b/src/pk/if_algo/modinfo.txt @@ -8,3 +8,9 @@ load_on auto if_algo.cpp if_algo.h </add> + +<requires> +asn1 +bigint +filters +</requires> diff --git a/src/pkcs8.cpp b/src/pkcs8.cpp index f5ee5435d..2963c9d86 100644 --- a/src/pkcs8.cpp +++ b/src/pkcs8.cpp @@ -10,7 +10,7 @@ #include <botan/pk_algs.h> #include <botan/oids.h> #include <botan/pem.h> -#include <botan/pbe.h> +#include <botan/lookup.h> #include <memory> namespace Botan { |