#include <openssl/ecdsa.h>
#include <openssl/obj_mac.h>
+#include <openssl/ssl.h>
#include "key.h"
#include "base58.h"
return true;
}
+//// Asymmetric encryption
+
+bool CPubKey::EncryptData(const std::vector<unsigned char>& data, std::vector<unsigned char>& encrypted)
+{
+ // TODO
+
+ return true;
+}
+
+bool CKey::DecryptData(const std::vector<unsigned char>& encrypted, std::vector<unsigned char>& data)
+{
+ // TODO
+
+ return true;
+}
std::vector<unsigned char> Raw() const {
return vchPubKey;
}
+
+ // Encrypt data
+ bool EncryptData(const std::vector<unsigned char>& data, std::vector<unsigned char>& encrypted);
};
// Reserialize to DER
static bool ReserealizeSignature(std::vector<unsigned char>& vchSig);
+
+ // Decrypt data
+ bool DecryptData(const std::vector<unsigned char>& encrypted, std::vector<unsigned char>& data);
};
class CPoint