47 #ifndef _MIRA_RSAKEY_H_ 48 #define _MIRA_RSAKEY_H_ 62 struct OpenSSLRSAWrapper;
84 RSAKey(
const std::string& n,
const std::string& e,
const std::string& d);
96 RSAKey(
const OpenSSLRSAWrapper* key);
107 template<
typename Reflector>
110 std::stringstream ss;
112 std::string str = ss.str();
116 template<
typename Reflector>
121 std::stringstream ss(str);
132 bool isValid()
const;
135 bool isPublicKey()
const;
138 bool isPrivateKey()
const;
168 std::string getNStr()
const;
171 std::string getEStr()
const;
174 std::string getDStr()
const;
188 static void generateKey(
unsigned int iKeyBitLength,
196 static void feedRandomNumberGenerator(
size_t count);
207 OpenSSLRSAWrapper* mKey;
234 template<
typename SerializerTag>
Typedefs for OS independent basic data types.
Type trait that indicates whether a type should be serialized "transparently", i.e.
Definition: IsTransparentSerializable.h:81
IStream & operator>>(IStream &is, JSONValue &value)
Definition: JSON.h:389
Definition of a RSA key (public or private)
Definition: RSAKey.h:71
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
#define MIRA_SPLIT_REFLECT_MEMBER
Macro that insert a class member reflect() method just splitting reflection into a reflectRead() and ...
Definition: SplitReflect.h:238
Provides type trait that indicates whether a type should be serialized "transparently".
Provides MIRA_SPLIT_REFLECT macros.
std::ostream & operator<<(std::ostream &s, const LibraryVersion &version)
bool operator==(const ImgIteratorBase &a, const ImgIteratorBase &b)
Definition: ImgIterator.h:225
MIRA_SPLIT_REFLECT_MEMBER void reflectRead(Reflector &r)
Reflect.
Definition: RSAKey.h:108
bool operator!=(const ImgIteratorBase &a, const ImgIteratorBase &b)
Definition: ImgIterator.h:228
void reflectWrite(Reflector &r)
Definition: RSAKey.h:117
const OpenSSLRSAWrapper * getOpenSSLKey() const
Return a pointer to the OpenSSL RSA key wrapper.
Definition: RSAKey.h:165