Cryptolens Client API for C++
|
Public Member Functions | |
void | set_modulus_base64 (::cryptolens_io::v20180502::basic_Error &e, std::string const &modulus_base64) |
void | set_exponent_base64 (::cryptolens_io::v20180502::basic_Error &e, std::string const &exponent_base64) |
bool | verify_message (::cryptolens_io::v20180502::basic_Error &e, std::string const &message, std::string const &signature_base64) const |
void cryptolens_io::internal::SignatureVerifier_v20190401_to_v20180502< SignatureVerifier >::set_exponent_base64 | ( | ::cryptolens_io::v20180502::basic_Error & | e, |
std::string const & | exponent_base64 | ||
) |
Sets the exponent of the public key used by the cryptolens.io Web API for signing the responses.
This value is unique for each account and can be found on cryptolens.io at the "Account Settings" found in the personal menu ("Hello, <account name>!" in the upper right corner). The public key is listed in XML format as something similar to
<RSAKeyValue><Modulus>AbC=</Modulus><Exponent>deFG</Exponent></RSAKeyValue>
and in this case the string "deFG" should be passed to this method.
void cryptolens_io::internal::SignatureVerifier_v20190401_to_v20180502< SignatureVerifier >::set_modulus_base64 | ( | ::cryptolens_io::v20180502::basic_Error & | e, |
std::string const & | modulus_base64 | ||
) |
Sets the modulus of the public key used by the cryptolens.io Web API for signing the responses.
This value is unique for each account and can be found on cryptolens.io at the "Account Settings" found in the personal menu ("Hello, <account name>!" in the upper right corner). The public key is listed in XML format as something similar to
<RSAKeyValue><Modulus>AbC=</Modulus><Exponent>deFG</Exponent></RSAKeyValue>
and in this case the string "AbC=" should be passed to this method.
bool cryptolens_io::internal::SignatureVerifier_v20190401_to_v20180502< SignatureVerifier >::verify_message | ( | ::cryptolens_io::v20180502::basic_Error & | e, |
std::string const & | message, | ||
std::string const & | signature_base64 | ||
) | const |
This function is used internally by the library and need not be called.