Function lcxx::verify_license

Function Documentation

auto lcxx::verify_license(license const &lic, std::vector<std::byte> const &signature, crypto::rsa_key_t const public_key) -> bool

check the contents of a license object against a signature by using a public RSA key for decryption

Parameters:
  • lic – the license object to check against the signature

  • signature – the signature of the original license object

  • public_key – the public key which must correspond to the private key used for encryption

Returns:

true if the license and public key match the original license and private key used for the signature

Returns:

false otherwise