- BER_encode
SecureArray!ubyte BER_encode(PrivateKey key)
- BER_encode
Vector!ubyte BER_encode(PrivateKey key, RandomNumberGenerator rng, string pass, Duration dur, string pbe_algo)
Encrypt a key using PKCS #8 encryption
- PEM_encode
string PEM_encode(PrivateKey key)
Get a string containing a PEM encoded private key.
- PEM_encode
string PEM_encode(PrivateKey key, RandomNumberGenerator rng, string pass, Duration dur, string pbe_algo)
Get a string containing a PEM encoded private key, encrypting it with a
password.
- PKCS8_decode
SecureVector!ubyte PKCS8_decode(DataSource source, string delegate() get_pass, AlgorithmIdentifier pk_alg_id)
Undocumented in source. Be warned that the author may not have intended to support it.
- PKCS8_extract
SecureVector!ubyte PKCS8_extract(DataSource source, AlgorithmIdentifier pbe_alg_id)
Undocumented in source. Be warned that the author may not have intended to support it.
- copyKey
PrivateKey copyKey(PrivateKey key, RandomNumberGenerator rng)
Copy an existing encoded key object.
- loadKey
PrivateKey loadKey(DataSource source, RandomNumberGenerator rng, string delegate() get_pass)
Load a key from a data source.
- loadKey
PrivateKey loadKey(DataSource source, RandomNumberGenerator rng, string pass)
Load a key from a data source.
- loadKey
PrivateKey loadKey(string filename, RandomNumberGenerator rng, string delegate() get_pass)
- loadKey
PrivateKey loadKey(string filename, RandomNumberGenerator rng, string pass)
PKCS #8