version 0.3.33
[fms.git] / include / freenet / frostidentity.h
1 #ifndef _frost_identity_\r
2 #define _frost_identity_\r
3 \r
4 #include <string>\r
5 #include <vector>\r
6 #include <tommath.h>\r
7 #include <tomcrypt.h>\r
8 \r
9 class FrostIdentity\r
10 {\r
11 public:\r
12         FrostIdentity();\r
13         ~FrostIdentity();\r
14 \r
15         const bool FromPublicKey(const std::string &publickey);\r
16         \r
17         const bool VerifyAuthor(const std::string &author);\r
18         const bool VerifySignature(const std::vector<unsigned char> &data, const std::string &signature);\r
19 \r
20 private:\r
21 \r
22         std::string m_publickey;\r
23         rsa_key m_rsa;\r
24 \r
25 };\r
26 \r
27 #endif  // _frost_identity_\r