#include <uapkirsakeypair.h>
List of all members.
Detailed Description
UaPkiRsaKeyPair
Constructor & Destructor Documentation
UaPkiRsaKeyPair::UaPkiRsaKeyPair |
( |
|
) |
|
Constructs an empty keypair.
UaPkiRsaKeyPair::UaPkiRsaKeyPair |
( |
int |
bits |
) |
|
Constructs a keypair with given key size.
- Parameters:
-
| bits | RSA modulus (key size) which should be 1024, 2048 or 4096. |
UaPkiRsaKeyPair::~UaPkiRsaKeyPair |
( |
|
) |
|
Member Function Documentation
UaPkiPrivateKey UaPkiRsaKeyPair::privateKey |
( |
|
) |
const |
Returns the private key part of this key pair.
Returns the public key part of this key pair.
int UaPkiRsaKeyPair::toPEMFile |
( |
const char * |
szFileName, |
|
|
const char * |
szPassword | |
|
) |
| | const |
Stores the keypair into a PEM encoded file.
- Parameters:
-
| szFileName | The filename locale 8bit encoded. |
| szPassword | Specify a password to protect the PEM file, or 0 if the file should be unprotected. |
- Returns:
- This functions returns zero on success.
Converts the key pair to DER format.
- Returns:
- DER encoded byte array.
UaPkiRsaKeyPair UaPkiRsaKeyPair::fromPEMFile |
( |
const char * |
szFileName, |
|
|
const char * |
szPassword, |
|
|
fcnPassword_callback * |
pCallback = 0 , |
|
|
void * |
pCBData = 0 | |
|
) |
| | [static] |
Loads a keypair from a PEM encoded file.
- Parameters:
-
| szFileName | The filename locale 8bit encoded. |
| szPassword | Specify the password of the PEM file, or 0 if the file is not protected. |
| pCBData | ToDoDoc |
| pCallback | ToDoDoc |
- Returns:
- The new key pair. If the file could not be loaded the returnd keypair will be empty. Use isValid() to check this.
The documentation for this class was generated from the following files:
- src/uabase/uapkicpp/uapkirsakeypair.h
- src/uabase/uapkicpp/uapkirsakeypair.cpp