version 0.3.33
[fms.git] / include / freenet / frostidentity.h
diff --git a/include/freenet/frostidentity.h b/include/freenet/frostidentity.h
new file mode 100644 (file)
index 0000000..20bc742
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _frost_identity_\r
+#define _frost_identity_\r
+\r
+#include <string>\r
+#include <vector>\r
+#include <tommath.h>\r
+#include <tomcrypt.h>\r
+\r
+class FrostIdentity\r
+{\r
+public:\r
+       FrostIdentity();\r
+       ~FrostIdentity();\r
+\r
+       const bool FromPublicKey(const std::string &publickey);\r
+       \r
+       const bool VerifyAuthor(const std::string &author);\r
+       const bool VerifySignature(const std::vector<unsigned char> &data, const std::string &signature);\r
+\r
+private:\r
+\r
+       std::string m_publickey;\r
+       rsa_key m_rsa;\r
+\r
+};\r
+\r
+#endif // _frost_identity_\r