CDHPrivateKey Class Reference
class CDHPrivateKey : public CDHParameters
|
Representation of a Diffie-Hellman (DH) private key.
Constructor & Destructor Documentation
CDHPrivateKey(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)
|
CDHPrivateKey(void)
IMPORT_C
|
CDHPrivateKey
|
(
|
void
|
|
)
|
[protected]
|
CDHPrivateKey(const CDHPrivateKey &)
~CDHPrivateKey(void)
IMPORT_C
|
~CDHPrivateKey
|
(
|
void
|
|
)
|
[virtual]
|
Member Functions Documentation
NewL(RInteger &, RInteger &, RInteger &)
Creates a new DH private key from a specified large prime, generator, and random large integer.
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 &, RInteger &)
Creates a new DH private key from a specified large prime, generator, and random large integer.
The returned pointer is put onto the cleanup stack.
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 CDHPrivateKey &)
x(void)
IMPORT_C const
TInteger
&
|
x
|
(
|
void
|
|
)
|
const
|
Gets the DH value, x, which is a random large integer.
Member Data Documentation
RInteger
ix
The DH value, x, which is a random large integer.
X = g^x mod n
(note the case sensitivity)
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.