29#ifndef FIDO_CLIENT_ASSERTION_H_
30#define FIDO_CLIENT_ASSERTION_H_
45 void set_cred_id(
const unsigned char *cred,
size_t len);
64 size_t &challenge_res_len) = 0;
Class to initiate authentication(aka assertion in FIDO terminology) on client side by generating a si...
Definition: assertion.h:40
const unsigned char * get_authdata_ptr(size_t index=0)
Method to get authenticator data.
Definition: assertion.cc:73
const char * get_rp_id()
Method to get rp id.
Definition: assertion.cc:119
virtual void set_client_data(const unsigned char *, const char *)=0
virtual bool sign_challenge()=0
fido_dev_info_t * discover_fido2_devices(size_t num_devices)
Discover available devices.
Definition: assertion.cc:130
size_t get_num_assertions()
Method to get number of assertions.
Definition: assertion.cc:112
size_t get_authdata_len(size_t index=0)
Method to get length of authenticator data.
Definition: assertion.cc:83
size_t get_signature_len(size_t index=0)
Method to get length of signature.
Definition: assertion.cc:103
void set_rp_id(const char *rp_id)
Method to set the relying party name or id.
Definition: assertion.cc:63
assertion()
Construcutor to allocate memory for performing assertion (authentication)
Definition: assertion.cc:41
fido_assert_t * m_assert
Definition: assertion.h:74
void set_cred_id(const unsigned char *cred, size_t len)
Set method to set credential ID.
Definition: assertion.cc:54
virtual bool parse_challenge(const unsigned char *challenge)=0
virtual bool get_signed_challenge(unsigned char **challenge_res, size_t &challenge_res_len)=0
const unsigned char * get_signature_ptr(size_t index=0)
Method to get signature.
Definition: assertion.cc:93
virtual ~assertion()
Standard destructor.
Definition: assertion.cc:46
Definition: assertion.h:34