CRSAPrivateKeyCRT Class Reference
class CRSAPrivateKeyCRT : public CRSAPrivateKey |
An alternate representation of an RSA private key providing significant speed enhancements through its use of the Chinese Remainder Theorem (CRT).
Here, a private key is represented by a modulus (n), the two prime factors of the modulus (p, q), p's CRT exponent (dP), q's CRT exponent (dQ), and the CRT coefficient (qInv). See PKCS#1 at http://www.rsasecurity.com/rsalabs/pkcs/ for more information.
Public Member Functions |
---|
| ~CRSAPrivateKeyCRT(void) |
IMPORT_C const TInteger & | DP(void) |
IMPORT_C const TInteger & | DQ(void) |
IMPORT_C CRSAPrivateKeyCRT * | NewL(RInteger &, RInteger &, RInteger &, RInteger &, RInteger &, RInteger &) |
IMPORT_C CRSAPrivateKeyCRT * | NewLC(RInteger &, RInteger &, RInteger &, RInteger &, RInteger &, RInteger &) |
IMPORT_C const TInteger & | P(void) |
IMPORT_C const TInteger & | Q(void) |
IMPORT_C const TInteger & | QInv(void) |
Constructor & Destructor Documentation
CRSAPrivateKeyCRT(RInteger &, RInteger &, RInteger &, RInteger &, RInteger &, RInteger &)
Parameters
RInteger & aN | The RSA parameter, n (the modulus) |
RInteger & aP | The RSA parameter, p (the first factor) |
RInteger & aQ | The RSA parameter, q (the second factor) |
RInteger & aDP | The RSA parameter, dP (the first factor's CRT exponent) |
RInteger & aDQ | The RSA parameter, dQ (the second factor's CRT exponent) |
RInteger & aQInv | The RSA parameter, qInv (the CRT coefficient) |
CRSAPrivateKeyCRT(const CRSAPrivateKeyCRT &)
~CRSAPrivateKeyCRT(void)
IMPORT_C | ~CRSAPrivateKeyCRT | ( | void | | ) | [virtual] |
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
DP(void)
Gets the RSA parameter, dP (the first factor's CRT exponent)
DQ(void)
Gets the RSA parameter, dQ (the second factor's CRT exponent)
NewL(RInteger &, RInteger &, RInteger &, RInteger &, RInteger &, RInteger &)
Creates a new CRSAPrivateKeyCRT object from a specified modulus and decryption exponent.
-
leave
- KErrArgument If any of the parameters are not positive integers, and releases ownership.
Parameters
RInteger & iN | The RSA parameter, n (the modulus) |
RInteger & aP | The RSA parameter, p (the first factor) |
RInteger & aQ | The RSA parameter, q (the second factor) |
RInteger & aDP | The RSA parameter, dP (the first factor's CRT exponent) |
RInteger & aDQ | The RSA parameter, dQ (the second factor's CRT exponent) |
RInteger & aQInv | The RSA parameter, qInv (the CRT coefficient) |
NewLC(RInteger &, RInteger &, RInteger &, RInteger &, RInteger &, RInteger &)
Creates a new CRSAPrivateKeyCRT object from a specified modulus and decryption exponent.
The returned pointer is put onto the cleanup stack.
-
leave
- KErrArgument If any of the parameters are not positive integers, and releases ownership.
Parameters
RInteger & iN | The RSA parameter, n (the modulus) |
RInteger & aP | The RSA parameter, p (the first factor) |
RInteger & aQ | The RSA parameter, q (the second factor) |
RInteger & aDP | The RSA parameter, dP (the first factor's CRT exponent) |
RInteger & aDQ | The RSA parameter, dQ (the second factor's CRT exponent) |
RInteger & aQInv | The RSA parameter, qInv (the CRT coefficient) |
P(void)
Gets the RSA parameter, p (the first factor)
Q(void)
Gets the RSA parameter, q (the second factor)
QInv(void)
IMPORT_C const TInteger & | QInv | ( | void | | ) | const |
Gets the RSA parameter, qInv (the CRT coefficient)
operator=(const CRSAPrivateKeyCRT &)
Member Data Documentation
RInteger
iDP
The RSA parameter, dP, which is the first factor's CRT exponent
RInteger
iDQ
The RSA parameter, dQ, which is the second factor's CRT exponent
RInteger
iP
The RSA parameter, p, which is the first factor
RInteger
iQ
The RSA parameter, q, which is the second factor
RInteger
iQInv
The RSA parameter, qInv, which is the CRT coefficient
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.