INNER CODE UNIT · C++

powP1

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

    int powP1 = std::max(static_cast<int>(std::trunc((limitBits) / result.sizeBits())), 1);
    result.pow(powP1);
    INT limit('1', limitBits, 2);

    return result % limit;

}

QRSAEncryption::QRSAEncryption(Rsa rsa) {
    _rsa = rsa;
}

unsigned int QRSAEncryption::getKeyBytesSize(QRSAEncryption::Rsa rsa) {

    return rsa / 4;
}

QRSAEncryption::Rsa QRSAEncryption::getKeyRsaType(const QByteArray &key) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…