INNER CODE UNIT · C++

longDiff

QuasarApp/Qt-Secret · src/Qt-RSA/qrsaencryption.cpp:91

        int longDiff = _rsa / (sizeof (int) * 8);

        while (longDiff > 0) {
            longDiff--;
            res *= (rand() % (std::numeric_limits<int>::max() - 1)) + 1;
        }
    }

    return res;
}

QRSAEncryption::INT QRSAEncryption::toPrime(INT n) const {
    if (!(n % 2)) {
        ++n;
    }

    INT LN = n;
    INT RN = n;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…