00001
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #pragma once
00022 #ifndef VOLUMILL_ENCRYPTUTIL_H
00023 #define VOLUMILL_ENCRYPTUTIL_H
00024
00025 namespace exchange
00026 {
00027 bool getPublicKey(const std::string& hostname, int port, const std::string& uri, std::string* pKey);
00028 void getPrivateKey(const std::string& filename, std::string* pKey);
00029 void hashStringSHA1 (const std::string& input, std::string* pOutput);
00030 void encryptStringRSA (const std::string& input, const std::string& publicKey, std::string* pOutput);
00031 void decryptStringRSA (const std::string& input, const std::string& privateKey, std::string* pOutput);
00032 void makeBlowfishKey (std::string* pKey);
00033 void encryptStringBlowfish (const std::string& input, const std::string& key, std::string* pOutput);
00034 void decryptStringBlowfish (const std::string& input, const std::string& key, std::string* pOutput);
00035 void base64Encode (const std::string& input, std::string* pOutput);
00036 void base64Decode (const std::string& input, std::string* pOutput);
00037 }
00038 #endif