Functions
wps_common.c File Reference
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/crypto.h"
#include "crypto/dh_group5.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#include "wps_i.h"
#include "wps_dev_attr.h"
Include dependency graph for wps_common.c:

Go to the source code of this file.

Functions

void uuid_gen_mac_addr (const u8 *mac_addr, u8 *uuid)
u16 wps_config_methods_str2bin (const char *str)
struct wpabufwps_decrypt_encr_settings (struct wps_data *wps, const u8 *encr, size_t encr_len)
int wps_derive_keys (struct wps_data *wps)
void wps_derive_psk (struct wps_data *wps, const u8 *dev_passwd, size_t dev_passwd_len)
char * wps_dev_type_bin2str (const u8 dev_type[WPS_DEV_TYPE_LEN], char *buf, size_t buf_len)
int wps_dev_type_str2bin (const char *str, u8 dev_type[WPS_DEV_TYPE_LEN])
void wps_fail_event (struct wps_context *wps, enum wps_msg_type msg)
unsigned int wps_generate_pin (void)
void wps_kdf (const u8 *key, const u8 *label_prefix, size_t label_prefix_len, const char *label, u8 *res, size_t res_len)
void wps_pbc_overlap_event (struct wps_context *wps)
void wps_pbc_timeout_event (struct wps_context *wps)
unsigned int wps_pin_checksum (unsigned int pin)
unsigned int wps_pin_valid (unsigned int pin)
void wps_pwd_auth_fail_event (struct wps_context *wps, int enrollee, int part)
void wps_success_event (struct wps_context *wps)

Function Documentation

void uuid_gen_mac_addr ( const u8 *  mac_addr,
u8 *  uuid 
)

Definition at line 572 of file wps_common.c.

u16 wps_config_methods_str2bin ( const char *  str)

Definition at line 600 of file wps_common.c.

struct wpabuf* wps_decrypt_encr_settings ( struct wps_data wps,
const u8 *  encr,
size_t  encr_len 
) [read]

Definition at line 153 of file wps_common.c.

int wps_derive_keys ( struct wps_data wps)

Definition at line 65 of file wps_common.c.

void wps_derive_psk ( struct wps_data wps,
const u8 *  dev_passwd,
size_t  dev_passwd_len 
)

Definition at line 133 of file wps_common.c.

char* wps_dev_type_bin2str ( const u8  dev_type[WPS_DEV_TYPE_LEN],
char *  buf,
size_t  buf_len 
)

Definition at line 557 of file wps_common.c.

int wps_dev_type_str2bin ( const char *  str,
u8  dev_type[WPS_DEV_TYPE_LEN] 
)

Definition at line 534 of file wps_common.c.

void wps_fail_event ( struct wps_context wps,
enum wps_msg_type  msg 
)

Definition at line 256 of file wps_common.c.

unsigned int wps_generate_pin ( void  )

wps_generate_pin - Generate a random PIN Returns: Eight digit PIN (i.e., including the checksum digit)

Definition at line 239 of file wps_common.c.

void wps_kdf ( const u8 *  key,
const u8 *  label_prefix,
size_t  label_prefix_len,
const char *  label,
u8 *  res,
size_t  res_len 
)

Definition at line 27 of file wps_common.c.

void wps_pbc_overlap_event ( struct wps_context wps)

Definition at line 292 of file wps_common.c.

void wps_pbc_timeout_event ( struct wps_context wps)

Definition at line 301 of file wps_common.c.

unsigned int wps_pin_checksum ( unsigned int  pin)

wps_pin_checksum - Compute PIN checksum : Seven digit PIN (i.e., eight digit PIN without the checksum digit) Returns: Checksum digit

Definition at line 210 of file wps_common.c.

unsigned int wps_pin_valid ( unsigned int  pin)

wps_pin_valid - Check whether a PIN has a valid checksum : Eight digit PIN (i.e., including the checksum digit) Returns: 1 if checksum digit is valid, or 0 if not

Definition at line 229 of file wps_common.c.

void wps_pwd_auth_fail_event ( struct wps_context wps,
int  enrollee,
int  part 
)

Definition at line 278 of file wps_common.c.

void wps_success_event ( struct wps_context wps)

Definition at line 269 of file wps_common.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:25