ECPrivateKey

This abstract class represents ECC private keys

Constructors

this
this(T options, RandomNumberGenerator rng, ECGroup ec_group, BigInt private_key)

ECPrivateKey constructor

this
this(T options, AlgorithmIdentifier alg_id, SecureVector!ubyte key_bits)
Undocumented in source.

Members

Functions

checkKey
bool checkKey(RandomNumberGenerator rng, bool b)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
privateValue
const(BigInt) privateValue()

Get the private key value of this key object.

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

Inherited Members

From ECPublicKey

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.

publicPoint
const(PointGFp) publicPoint()

Get the public point of this key.

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.
messageParts
size_t messageParts()
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.
checkKey
bool checkKey(RandomNumberGenerator rng, bool b)
Undocumented in source. Be warned that the author may not have intended to support it.
domain
const(ECGroup) domain()

Get the domain parameters of this key.

setParameterEncoding
void setParameterEncoding(ECGroupEncoding form)

Set the domain parameter encoding to be used when encoding this key.

DER_domain
Vector!ubyte DER_domain()

Return the DER encoding of this keys domain in whatever format is preset for this particular key

domainFormat
ECGroupEncoding domainFormat()

Get the domain parameter encoding to be used when encoding this key.

estimatedStrength
size_t estimatedStrength()
Undocumented in source. Be warned that the author may not have intended to support it.
publicValue
Vector!ubyte publicValue()
m_domain_params
ECGroup m_domain_params;
Undocumented in source.
m_public_key
PointGFp m_public_key;
Undocumented in source.
m_domain_encoding
ECGroupEncoding m_domain_encoding;
Undocumented in source.
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 ECPrivateKey, RandomNumberGenerator, bool) m_check_key;
Undocumented in source.
m_subject_public_key
Vector!ubyte function(in ECPublicKey) m_subject_public_key;
Undocumented in source.
m_algorithm_identifier
AlgorithmIdentifier function(in ECPublicKey) m_algorithm_identifier;
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