monotone

monotone Mtn Source Tree

Root/botan/pbe.h

1/*************************************************
2* PBE Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_PBE_H__
7#define BOTAN_PBE_H__
8
9#include <botan/asn1_oid.h>
10#include <botan/data_src.h>
11#include <botan/filter.h>
12
13namespace Botan {
14
15/*************************************************
16* Password Based Encryption *
17*************************************************/
18class PBE : public Filter
19 {
20 public:
21 virtual void set_key(const std::string&) = 0;
22 virtual void new_params() = 0;
23 virtual MemoryVector<byte> encode_params() const = 0;
24 virtual void decode_params(DataSource&) = 0;
25 virtual OID get_oid() const = 0;
26 };
27
28/*************************************************
29* Get a PBE object *
30*************************************************/
31PBE* get_pbe(const std::string&);
32PBE* get_pbe(const OID&, DataSource&);
33
34}
35
36#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status