botan.pubkey.pkcs8

PKCS #8

Public Imports

botan.rng.rng
public import botan.rng.rng;
Undocumented in source.
botan.pubkey.pubkey
public import botan.pubkey.pubkey;
Undocumented in source.

Members

Aliases

pkcs8
alias pkcs8 = botan.pubkey.pkcs8
Undocumented in source.

Classes

PKCS8Exception
class PKCS8Exception

PKCS #8 General Exception

Functions

BER_encode
SecureArray!ubyte BER_encode(PrivateKey key)

BER encode a private 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)

Load a key from a file.

loadKey
PrivateKey loadKey(string filename, RandomNumberGenerator rng, string pass)

Load a key from a file.

Meta

License

Botan is released under the Simplified BSD License (see LICENSE.md)