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 <assertion.h>
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. 
 
◆ assertion()
Construcutor to allocate memory for performing assertion (authentication) 
 
 
◆ ~assertion()
  
  
      
        
          | assertion::~assertion  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ discover_fido2_devices()
  
  
      
        
          | fido_dev_info_t * assertion::discover_fido2_devices  | 
          ( | 
          size_t  | 
          num_devices | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Discover available devices. 
Caller should always free num_devices + 1.
- Parameters
 - 
  
    | [in] | num_devices | Number of devices to open | 
  
   
- Returns
 - handle to fido_dev_info_t array on success. null otherwise. 
 
 
 
◆ get_authdata_len()
      
        
          | size_t assertion::get_authdata_len  | 
          ( | 
          size_t  | 
          index = 0 | ) | 
           | 
        
      
 
Method to get length of authenticator data. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
    | length | of authenticator data  | 
  
   
 
 
◆ get_authdata_ptr()
      
        
          | const unsigned char * assertion::get_authdata_ptr  | 
          ( | 
          size_t  | 
          index = 0 | ) | 
           | 
        
      
 
Method to get authenticator data. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
    | buffer | holding authenticator data  | 
  
   
 
 
◆ get_num_assertions()
      
        
          | size_t assertion::get_num_assertions  | 
          ( | 
           | ) | 
           | 
        
      
 
Method to get number of assertions. 
- Return values
 - 
  
  
 
 
 
◆ get_rp_id()
      
        
          | const char * assertion::get_rp_id  | 
          ( | 
           | ) | 
           | 
        
      
 
Method to get rp id. 
- Return values
 - 
  
  
 
 
 
◆ get_signature_len()
      
        
          | size_t assertion::get_signature_len  | 
          ( | 
          size_t  | 
          index = 0 | ) | 
           | 
        
      
 
Method to get length of signature. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
  
 
 
 
◆ get_signature_ptr()
      
        
          | const unsigned char * assertion::get_signature_ptr  | 
          ( | 
          size_t  | 
          index = 0 | ) | 
           | 
        
      
 
Method to get signature. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
    | buffer | holding signature data  | 
  
   
 
 
◆ get_signed_challenge()
  
  
      
        
          | virtual bool client_authentication::assertion::get_signed_challenge  | 
          ( | 
          unsigned char **  | 
          challenge_res,  | 
         
        
           | 
           | 
          size_t &  | 
          challenge_res_len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ parse_challenge()
  
  
      
        
          | virtual bool client_authentication::assertion::parse_challenge  | 
          ( | 
          const unsigned char *  | 
          challenge | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ set_client_data()
  
  
      
        
          | virtual void client_authentication::assertion::set_client_data  | 
          ( | 
          const unsigned char *  | 
          ,  | 
         
        
           | 
           | 
          const char *  | 
            | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ set_cred_id()
      
        
          | void assertion::set_cred_id  | 
          ( | 
          const unsigned char *  | 
          cred,  | 
        
        
           | 
           | 
          size_t  | 
          len  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Set method to set credential ID. 
- Parameters
 - 
  
    | [in] | cred | buffer holding credential ID  | 
    | [in] | len | length of credential ID  | 
  
   
 
 
◆ set_rp_id()
      
        
          | void assertion::set_rp_id  | 
          ( | 
          const char *  | 
          rp_id | ) | 
           | 
        
      
 
Method to set the relying party name or id. 
- Parameters
 - 
  
    | [in] | rp_id | buffer holding relying party name  | 
  
   
 
 
◆ sign_challenge()
  
  
      
        
          | virtual bool client_authentication::assertion::sign_challenge  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ m_assert
  
  
      
        
          | fido_assert_t* client_authentication::assertion::m_assert | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: