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

Function Documentation

auto lcxx::crypto::load_key(std::filesystem::path const &key_path, key_type type) -> rsa_key_t

loads a key (public/private) from file into memory. File must be PEM type

Parameters:
  • key_path – file path to the corresponding RSA key file in PEM format

  • type – whether this is a public or private key