PublicKey

Public Key Base Class.

Members

Functions

algorithmIdentifier
AlgorithmIdentifier algorithmIdentifier()
checkKey
bool checkKey(RandomNumberGenerator rng, bool strong)

Test the key values for consistency.

estimatedStrength
size_t estimatedStrength()

Return the estimated strength of the underlying key against the best currently known attack. Note that this ignores anything but pure attacks against the key itself and do not take into account padding schemes, usage mistakes, etc which might reduce the strength. However it does suffice to provide an upper bound.

getOid
OID getOid()

Get the OID of the underlying public key scheme.

loadCheck
void loadCheck(RandomNumberGenerator rng)

Self-test after loading a key

maxInputBits
size_t maxInputBits()

Get the maximum message size in bits supported by this public key.

messagePartSize
size_t messagePartSize()

Find out the message part size supported by this scheme/key.

messageParts
size_t messageParts()

Find out the number of message parts supported by this scheme.

x509SubjectPublicKey
Vector!ubyte x509SubjectPublicKey()

Properties

algoName
string algoName [@property getter]

Get the name of the underlying public key scheme.

Meta