blob: 7a23282cdec12480a3e3aad82cae78759fe7cd6f (
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-2006 The Botan Project *
*************************************************/
#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 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 *
*************************************************/
PBE* get_pbe(const std::string&);
PBE* get_pbe(const OID&, DataSource&);
}
#endif
|