Function lcxx::crypto::sign¶
Defined in File crypto.cpp
Function Documentation¶
-
auto lcxx::crypto::sign(std::string const &input_string, rsa_key_t const private_key) -> std::vector<std::byte>¶
this method will sign an input string and a private RSA key and return the encrypted data
- Parameters:
input_string – the string that should be signed
private_key – the private RSA key used for the signature
- Returns:
std::string the encrypted string