Function lcxx::crypto::load_key(std::string const&, key_type)

Function Documentation

auto lcxx::crypto::load_key(std::string const &key, key_type type) -> rsa_key_t

loads a key (public/private) from string into memory.

Parameters:
  • key – the RSA key data in PEM format

  • type – whether this is a public or private key