qca
QCA::RSAPrivateKey Class Reference
[QCA user API]
RSA Private Key. More...
#include <QtCrypto>

Public Member Functions | |
| RSAPrivateKey (const BigInteger &n, const BigInteger &e, const BigInteger &p, const BigInteger &q, const BigInteger &d, const QString &provider=QString()) | |
| RSAPrivateKey () | |
| BigInteger | d () const |
| BigInteger | e () const |
| BigInteger | n () const |
| BigInteger | p () const |
| BigInteger | q () const |
Detailed Description
RSA Private Key.
Definition at line 1257 of file qca_publickey.h.
Constructor & Destructor Documentation
| QCA::RSAPrivateKey::RSAPrivateKey | ( | ) |
Generate an empty RSA private key.
Definition at line 1337 of file qca_publickey.cpp.
| QCA::RSAPrivateKey::RSAPrivateKey | ( | const BigInteger & | n, | |
| const BigInteger & | e, | |||
| const BigInteger & | p, | |||
| const BigInteger & | q, | |||
| const BigInteger & | d, | |||
| const QString & | provider = QString() | |||
| ) |
Generate an RSA private key from specified parameters.
- Parameters:
-
n the public key value e the public key exponent p one of the two chosen primes q the other of the two chosen primes d inverse of the exponent, modulo (p-1)(q-1) provider the provider to use, if a particular provider is required
Definition at line 1341 of file qca_publickey.cpp.
Member Function Documentation
| BigInteger QCA::RSAPrivateKey::d | ( | ) | const |
The inverse of the exponent, module (p-1)(q-1).
Definition at line 1370 of file qca_publickey.cpp.
| BigInteger QCA::RSAPrivateKey::e | ( | ) | const |
The public key exponent.
This value is the exponent chosen in the original key generator step
Definition at line 1355 of file qca_publickey.cpp.
| BigInteger QCA::RSAPrivateKey::n | ( | ) | const |
The public key value.
This value is the actual public key value (the product of p and q, the random prime numbers used to generate the RSA key), also known as the public modulus.
Definition at line 1350 of file qca_publickey.cpp.
| BigInteger QCA::RSAPrivateKey::p | ( | ) | const |
One of the two random primes used to generate the private key.
Definition at line 1360 of file qca_publickey.cpp.
| BigInteger QCA::RSAPrivateKey::q | ( | ) | const |
The second of the two random primes used to generate the private key.
Definition at line 1365 of file qca_publickey.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference