darknelson
Member
- Joined
- Jun 19, 2011
- Messages
- 190
- Solutions
- 1
- Reaction score
- 15
hi, im trying to remove this part of code
and replace it with this
but it gives me an error on compile, please help how to implement that change
Error C2039 'setKey': is not a member of 'RSA2'
C++:
// set RSA key
try {
g_RSA.loadPEM("key.pem");
} catch(const std::exception& e) {
SPDLOG_ERROR(e.what());
startupErrorMessage();
}
and replace it with this
C++:
//set RSA key
const char* p("14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113");
const char* q("7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101");
g_RSA.setKey(p, q);
but it gives me an error on compile, please help how to implement that change
Error C2039 'setKey': is not a member of 'RSA2'