#include <asymmetric.h>
| class CDH : public CBase |
| Protected Attributes | |
|---|---|
| const CDHPrivateKey & | iPrivateKey |
| Public Member Functions | |
|---|---|
| IMPORT_C HBufC8 * | AgreeL(const CDHPublicKey &) |
| IMPORT_C CDH * | NewL(const CDHPrivateKey &) |
| IMPORT_C CDH * | NewLC(const CDHPrivateKey &) |
| Protected Member Functions | |
|---|---|
| CDH(const CDHPrivateKey &) | |
Implementation of Diffie-Hellman key agreement as specified in PKCS#3.
| IMPORT_C | CDH | ( | const CDHPrivateKey & | aPrivateKey | ) | [protected] |
Constructor
| Parameters | |
|---|---|
| aPrivateKey | The DH private key |
| IMPORT_C HBufC8 * | AgreeL | ( | const CDHPublicKey & | aPublicKey | ) | const |
Performs the key agreement operation.
| Parameters | |
|---|---|
| aPublicKey | The public key of the other party |
| IMPORT_C CDH * | NewL | ( | const CDHPrivateKey & | aPrivateKey | ) | [static] |
Creates a new CDH object from a specified DH private key.
| Parameters | |
|---|---|
| aPrivateKey | The private key of this party |
| IMPORT_C CDH * | NewLC | ( | const CDHPrivateKey & | aPrivateKey | ) | [static] |
Creates a new CDH object from a specified DH private key.
The returned pointer is put onto the cleanup stack.
| Parameters | |
|---|---|
| aPrivateKey | The private key of this party |