CRSAKeyPair Class Reference
class CRSAKeyPair : public CBase |
This class is capable of generating an RSA public/private key pair.
By default, it generates 2 prime (standard) CRT private keys.
Constructor & Destructor Documentation
CRSAKeyPair(void)
IMPORT_C | CRSAKeyPair | ( | void | | ) | [protected] |
CRSAKeyPair(const CRSAKeyPair &)
~CRSAKeyPair(void)
IMPORT_C | ~CRSAKeyPair | ( | void | | ) | [virtual] |
The destructor frees all resources owned by the object, prior to its destruction.
Member Functions Documentation
ConstructL(TUint, TRSAPrivateKeyType, TUint)
NewL(TUint, TRSAPrivateKeyType)
Creates a new RSA key pair
-
leave
- KErrNotSupported If the type of RSA key is not supported
Parameters
TUint aModulusBits | The length of the modulus, n (in bits) |
TRSAPrivateKeyType aKeyType = EStandardCRT | The type of the RSA key |
NewLC(TUint, TRSAPrivateKeyType)
Creates a new RSA key pair
The returned pointer is put onto the cleanup stack.
-
leave
- KErrNotSupported If the type of RSA key is not supported
Parameters
TUint aModulusBits | The length of the modulus, n (in bits) |
TRSAPrivateKeyType aKeyType = EStandardCRT | The type of the RSA key |
operator=(const CRSAKeyPair &)
Member Data Documentation
CRSAPrivateKey * iPrivate
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.