IFSchemePrivateKey

This class represents public keys of integer factorization based (IF) public key schemes.

Constructors

this
this(T options, RandomNumberGenerator rng, AlgorithmIdentifier aid, SecureVector!ubyte key_bits)
Undocumented in source.
this
this(T options, RandomNumberGenerator rng, BigInt prime1, BigInt prime2, BigInt exp, BigInt d_exp, BigInt mod)
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.
getC
const(BigInt) getC()
Undocumented in source. Be warned that the author may not have intended to support it.
getD
const(BigInt) getD()

Get d with exp * d = 1 mod (p - 1, q - 1).

getD1
const(BigInt) getD1()
Undocumented in source. Be warned that the author may not have intended to support it.
getD2
const(BigInt) getD2()
Undocumented in source. Be warned that the author may not have intended to support it.
getP
const(BigInt) getP()

Get the first prime p.

getQ
const(BigInt) getQ()

Get the second prime q.

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

Variables

m_d
BigInt m_d;
m_d1
BigInt m_d1;
m_d2
BigInt m_d2;
m_p
BigInt m_p;
m_q
BigInt m_q;
Undocumented in source.

Inherited Members

From IFSchemePublicKey

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.

checkKey
bool checkKey(RandomNumberGenerator rng, bool strong)
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.
getN
const(BigInt) getN()
getE
const(BigInt) getE()
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.
estimatedStrength
size_t estimatedStrength()
Undocumented in source. Be warned that the author may not have intended to support it.
m_n
BigInt m_n;
m_e
BigInt m_e;
Undocumented in source.
m_algo_name
string m_algo_name;
Undocumented in source.
m_check_key
bool function(in IFSchemePrivateKey, 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

Meta