aboutsummaryrefslogtreecommitdiffstats
path: root/include/pbe.h
blob: 323f37ce40ed540483cb4eec2f34c46b8f8c84b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*************************************************
* PBE Header File                                *
* (C) 1999-2007 Jack Lloyd                       *
*************************************************/

#ifndef BOTAN_PBE_H__
#define BOTAN_PBE_H__

#include <botan/asn1_oid.h>
#include <botan/data_src.h>
#include <botan/filter.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() = 0;
      virtual MemoryVector<byte> encode_params() const = 0;
      virtual void decode_params(DataSource&) = 0;
      virtual OID get_oid() const = 0;
   };

/*************************************************
* Get a PBE object                               *
*************************************************/
BOTAN_DLL PBE* get_pbe(const std::string&);
BOTAN_DLL PBE* get_pbe(const OID&, DataSource&);

}

#endif