Commit df0f12d7 authored by jan.koester's avatar jan.koester
Browse files

test

parent 422eddce
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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)
@@ -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");
        }
@@ -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);