/*************************************************
* PBE Header File                                *
* (C) 1999-2007 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


syntax highlighted by Code2HTML, v. 0.9.1