monotone

monotone Mtn Source Tree

Root/botan/pkcs5.h

1/*************************************************
2* PKCS #5 Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_PKCS5_H__
7#define BOTAN_PKCS5_H__
8
9#include <botan/s2k.h>
10
11namespace Botan {
12
13/*************************************************
14* PKCS #5 PBKDF1 *
15*************************************************/
16class PKCS5_PBKDF1 : public S2K
17 {
18 public:
19 std::string name() const;
20 S2K* clone() const { return new PKCS5_PBKDF1(hash_name); }
21 PKCS5_PBKDF1(const std::string&);
22 private:
23 OctetString derive(u32bit, const std::string&,
24 const byte[], u32bit, u32bit) const;
25 const std::string hash_name;
26 };
27
28/*************************************************
29* PKCS #5 PBKDF2 *
30*************************************************/
31class PKCS5_PBKDF2 : public S2K
32 {
33 public:
34 std::string name() const;
35 S2K* clone() const { return new PKCS5_PBKDF2(hash_name); }
36 PKCS5_PBKDF2(const std::string&);
37 private:
38 OctetString derive(u32bit, const std::string&,
39 const byte[], u32bit, u32bit) const;
40 const std::string hash_name;
41 };
42
43}
44
45#endif

Archive Download this file

Branches

Tags

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