identt
ProtoJsonSigned.hpp
Go to the documentation of this file.
1 
33 #ifndef _IDENTT_QUERY_PROTOJSON_SIGNED_HPP_
34 #define _IDENTT_QUERY_PROTOJSON_SIGNED_HPP_
35 
36 #include <query/ProtoJson.hpp>
37 
38 namespace identt {
39 namespace query {
40 
41 struct SignatureT {
42  std::string org;
43  std::string key;
44  std::string value;
45 };
46 
62 void pb2signedjson(const google::protobuf::Message* msg, std::string& str, std::vector<SignatureT>& signatures);
63 
82 void pb2signedjson(const google::protobuf::Message* msg, const google::protobuf::Message* umsg,
83  std::string& str, std::vector<SignatureT>& signatures);
84 
106 int signedjson2unsigned(const std::string& input, std::string& output, std::string& umsg, std::string& err, std::vector<SignatureT>& signatures);
107 
129 int unsigned2signedjson(const std::string& input, const std::string& uinput,
130  std::string& output, std::string& err, std::vector<SignatureT>& signatures);
131 
132 }
133 }
134 
135 #endif // _IDENTT_QUERY_PROTOJSON_SIGNED_HPP_
Definition: ProtoJsonSigned.hpp:41
int unsigned2signedjson(const std::string &input, const std::string &uinput, std::string &output, std::string &err, std::vector< SignatureT > &signatures)
unsigned2signedjson : Convert uniigned json to signed json
Definition: ProtoJsonSigned.cc:148
int signedjson2unsigned(const std::string &input, std::string &output, std::string &umsg, std::string &err, std::vector< SignatureT > &signatures)
signedjson2unsigned : Convert signed json unsigned json string for verification
Definition: ProtoJsonSigned.cc:109
void pb2signedjson(const google::protobuf::Message *msg, std::string &str, std::vector< SignatureT > &signatures)
pb2signedjson : Convert protobuf to signed json simple no unsigned
Definition: ProtoJsonSigned.cc:58
Definition: CryptoBase.hpp:49