loadKey

Create a public key from a data source.

  1. PublicKey loadKey(DataSource source)
    static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO && BOTAN_HAS_X509_CERTIFICATES)
    loadKey
    (
    DataSource source
    )
  2. PublicKey loadKey(string filename)
  3. PublicKey loadKey(Vector!(ubyte, ALLOC) enc)

Parameters

source DataSource

the source providing the DER or PEM encoded key

Return Value

Type: PublicKey

new public key object

Meta