CDHKeyPair Class Reference
class CDHKeyPair : public CBase
|
This class is capable of generating a Diffie-Hellman (DH) public/private key pair.
Constructor & Destructor Documentation
CDHKeyPair(void)
IMPORT_C
|
CDHKeyPair
|
(
|
void
|
|
)
|
[protected]
|
CDHKeyPair(const CDHKeyPair &)
~CDHKeyPair(void)
IMPORT_C
|
~CDHKeyPair
|
(
|
void
|
|
)
|
[virtual]
|
The destructor frees all resources owned by the object, prior to its destruction.
Member Functions Documentation
ConstructL(RInteger &, RInteger &)
Parameters
RInteger
& aN
|
The DH parameter, n (a large prime)
|
RInteger
& aG
|
The DH parameter, g (the generator)
|
ConstructL(RInteger &, RInteger &, RInteger &)
Parameters
RInteger
& aN
|
The DH parameter, n (a large prime)
|
RInteger
& aG
|
The DH parameter, g (the generator)
|
RInteger
& ax
|
The DH value, x (a random large integer)
|
NewL(RInteger &, RInteger &)
Creates a new DH key pair from a random large integer, and a specified large prime and generator.
-
leave
-
KErrArgument If aG is out of bounds
Parameters
RInteger
& aN
|
The DH parameter, n (a large prime)
|
RInteger
& aG
|
The DH parameter, g (the generator)
|
NewL(RInteger &, RInteger &, RInteger &)
Creates a new DH key pair from a specified large prime, generator, and random large integer.
-
leave
-
KErrArgument If either aG or ax are out of bounds
Parameters
RInteger
& aN
|
The DH parameter, n (a large prime)
|
RInteger
& aG
|
The DH parameter, g (the generator)
|
RInteger
& ax
|
The DH value, x (a random large integer)
|
NewLC(RInteger &, RInteger &)
Creates a new DH key pair from a random large integer, and a specified large prime and generator.
The returned pointer is put onto the cleanup stack.
-
leave
-
KErrArgument If aG is out of bounds
Parameters
RInteger
& aN
|
The DH parameter, n (a large prime)
|
RInteger
& aG
|
The DH parameter, g (the generator)
|
NewLC(RInteger &, RInteger &, RInteger &)
Creates a new DH key pair from a specified large prime, generator, and random large integer.
The returned pointer is put onto the cleanup stack.
-
leave
-
KErrArgument If either aG or ax are out of bounds
Parameters
RInteger
& aN
|
The DH parameter, n (a large prime)
|
RInteger
& aG
|
The DH parameter, g (the generator)
|
RInteger
& ax
|
The DH value, x (a random large integer)
|
operator=(const CDHKeyPair &)
Member Data Documentation
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.