MySQL 8.3.0
Source Code Documentation
|
Class to initiate authentication(aka assertion in FIDO terminology) on client side by generating a signed signature by FIDO device which needs to be sent to server to be verified. More...
#include <fido_assertion.h>
Public Member Functions | |
fido_assertion ()=default | |
bool | get_signed_challenge (unsigned char **challenge_res, size_t &challenge_res_len) override |
This method will extract authenticator data, signature from fido_assert_t struct and serialize it. More... | |
void | set_client_data (const unsigned char *, const char *) override |
Set method to set 32 bytes random salt. More... | |
bool | sign_challenge () override |
Method to obtains an assertion from a FIDO device. More... | |
bool | parse_challenge (const unsigned char *challenge) override |
Helper method to parse the challenge received from server during authentication process. More... | |
Public Member Functions inherited from client_authentication::assertion | |
assertion () | |
Construcutor to allocate memory for performing assertion (authentication) More... | |
virtual | ~assertion () |
Standard destructor. More... | |
void | set_cred_id (const unsigned char *cred, size_t len) |
Set method to set credential ID. More... | |
void | set_rp_id (const char *rp_id) |
Method to set the relying party name or id. More... | |
const char * | get_rp_id () |
Method to get rp id. More... | |
const unsigned char * | get_authdata_ptr (size_t index=0) |
Method to get authenticator data. More... | |
size_t | get_authdata_len (size_t index=0) |
Method to get length of authenticator data. More... | |
const unsigned char * | get_signature_ptr (size_t index=0) |
Method to get signature. More... | |
size_t | get_signature_len (size_t index=0) |
Method to get length of signature. More... | |
size_t | get_num_assertions () |
Method to get number of assertions. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from client_authentication::assertion | |
fido_dev_info_t * | discover_fido2_devices (size_t num_devices) |
Discover available devices. More... | |
Protected Attributes inherited from client_authentication::assertion | |
fido_assert_t * | m_assert |
Class to initiate authentication(aka assertion in FIDO terminology) on client side by generating a signed signature by FIDO device which needs to be sent to server to be verified.
|
default |
|
overridevirtual |
This method will extract authenticator data, signature from fido_assert_t struct and serialize it.
[out] | challenge_res | buffer to signed challenge |
[out] | challenge_res_len | length of signed challenge |
false | successful. |
true | failed. |
Implements client_authentication::assertion.
|
overridevirtual |
Helper method to parse the challenge received from server during authentication process.
This method extracts salt, relying party name and credential ID.
[in] | challenge | buffer holding the server challenge |
false | received challenge was valid |
true | received challenge was corrupt |
Implements client_authentication::assertion.
|
overridevirtual |
Set method to set 32 bytes random salt.
[in] | salt | buffer holding random salt |
Implements client_authentication::assertion.
|
overridevirtual |
Method to obtains an assertion from a FIDO device.
false | assertion successful. |
true | assertion failed. |
Implements client_authentication::assertion.