loadKey

Create a public key from a memory region.

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

Parameters

enc Vector!(ubyte, ALLOC)

the memory region containing the DER or PEM encoded key

Return Value

Type: PublicKey

new public key object

Meta