Loading src/crypto/rsa.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ #include "rsa.h" namespace netplus { // Forward declaration for parseDERAndLoadRSA static bool parseDERAndLoadRSA(const std::vector<uint8_t>& derData, netplus::rsa& out_rsa); netplus::rsa::bigInt::bigInt(const bigInt& other) : used(other.used), capacity(other.capacity) Loading Loading @@ -62,7 +65,7 @@ namespace netplus { } // Assignment from buffer rsa(const std::vector<uint8_t>& buffer) { netplus::rsa::rsa(const std::vector<uint8_t>& buffer) { if (buffer.empty()) { throw std::runtime_error("Buffer is empty"); } Loading @@ -73,7 +76,7 @@ namespace netplus { } // Assignment from filepath rsa(const std::string& filepath) { netplus::rsa::rsa(const std::string& filepath) { std::ifstream file(filepath, std::ios::binary | std::ios::ate); if (!file.is_open()) { throw std::runtime_error("Cannot open file: " + filepath); Loading Loading
src/crypto/rsa.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ #include "rsa.h" namespace netplus { // Forward declaration for parseDERAndLoadRSA static bool parseDERAndLoadRSA(const std::vector<uint8_t>& derData, netplus::rsa& out_rsa); netplus::rsa::bigInt::bigInt(const bigInt& other) : used(other.used), capacity(other.capacity) Loading Loading @@ -62,7 +65,7 @@ namespace netplus { } // Assignment from buffer rsa(const std::vector<uint8_t>& buffer) { netplus::rsa::rsa(const std::vector<uint8_t>& buffer) { if (buffer.empty()) { throw std::runtime_error("Buffer is empty"); } Loading @@ -73,7 +76,7 @@ namespace netplus { } // Assignment from filepath rsa(const std::string& filepath) { netplus::rsa::rsa(const std::string& filepath) { std::ifstream file(filepath, std::ios::binary | std::ios::ate); if (!file.is_open()) { throw std::runtime_error("Cannot open file: " + filepath); Loading