DLSchemePrivateKey

This class represents discrete logarithm (DL) private keys.

Constructors

this
this(T options, AlgorithmIdentifier alg_id, SecureVector!ubyte key_bits)
Undocumented in source.
this
this(T options, DLGroup grp, BigInt y1, BigInt x_arg)
Undocumented in source.

Members

Functions

checkKey
bool checkKey(RandomNumberGenerator rng, bool strong)
Undocumented in source. Be warned that the author may not have intended to support it.
checkKeyImpl
bool checkKeyImpl(RandomNumberGenerator rng, bool strong)
Undocumented in source. Be warned that the author may not have intended to support it.
getX
const(BigInt) getX()

Get the secret key m_x.

pkcs8AlgorithmIdentifier
AlgorithmIdentifier pkcs8AlgorithmIdentifier()
Undocumented in source. Be warned that the author may not have intended to support it.
pkcs8PrivateKey
SecureVector!ubyte pkcs8PrivateKey()
Undocumented in source. Be warned that the author may not have intended to support it.
publicValue
Vector!ubyte publicValue()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_x
BigInt m_x;

The DL private key

Inherited Members

From DLSchemePublicKey

checkKey
bool checkKey(RandomNumberGenerator rng, bool strong)
Undocumented in source. Be warned that the author may not have intended to support it.
checkKey
bool checkKey(RandomNumberGenerator rng, bool strong)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeOptions
void decodeOptions(T options)
Undocumented in source. Be warned that the author may not have intended to support it.
algoName
string algoName [@property getter]

Used for object casting to the right type in the factory.

messageParts
size_t messageParts()
Undocumented in source. Be warned that the author may not have intended to support it.
maxInputBits
size_t maxInputBits()
Undocumented in source. Be warned that the author may not have intended to support it.
messagePartSize
size_t messagePartSize()
Undocumented in source. Be warned that the author may not have intended to support it.
algorithmIdentifier
AlgorithmIdentifier algorithmIdentifier()
Undocumented in source. Be warned that the author may not have intended to support it.
x509SubjectPublicKey
Vector!ubyte x509SubjectPublicKey()
Undocumented in source. Be warned that the author may not have intended to support it.
publicValue
Vector!ubyte publicValue()
Undocumented in source. Be warned that the author may not have intended to support it.
getDomain
const(DLGroup) getDomain()

Get the DL domain parameters of this key.

getY
const(BigInt) getY()

Get the public value m_y with m_y = g^m_x mod p where m_x is the secret key.

setY
void setY(BigInt y)

Set the value m_y

groupP
const(BigInt) groupP()

Get the prime p of the underlying DL m_group.

groupQ
const(BigInt) groupQ()

Get the prime q of the underlying DL m_group.

groupG
const(BigInt) groupG()

Get the generator g of the underlying DL m_group.

estimatedStrength
size_t estimatedStrength()
Undocumented in source. Be warned that the author may not have intended to support it.
m_y
BigInt m_y;

The DL public key

m_group
DLGroup m_group;

The DL group

m_format
DLGroup.Format m_format;

options

m_algo_name
string m_algo_name;
Undocumented in source.
m_msg_parts
short m_msg_parts;
Undocumented in source.
m_check_key
bool function(in DLSchemePrivateKey, RandomNumberGenerator, bool) m_check_key;
Undocumented in source.

From PrivateKey

pkcs8PrivateKey
SecureVector!ubyte pkcs8PrivateKey()
pkcs8AlgorithmIdentifier
AlgorithmIdentifier pkcs8AlgorithmIdentifier()
loadCheck
void loadCheck(RandomNumberGenerator rng)

Self-test after loading a key

genCheck
void genCheck(RandomNumberGenerator rng)

Self-test after generating a key

From PKKeyAgreementKey

publicValue
Vector!ubyte publicValue()
Undocumented in source.

Meta