Classes | Macros | Functions
ykey.h File Reference
#include "ydef.h"
Include dependency graph for ykey.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HASH_SUM
 

Macros

#define HTTP_AUTH_MD5_SIZE   16
 
#define HTTP_AUTH_MD5_STRLEN   (HTTP_AUTH_MD5_SIZE*2)
 

Functions

void bin2str (char *to, const u8 *p, u16 len, u8 addnull)
 
int CheckWSAuth (u32 nonce, const u8 *ha1, const u8 *to_verify, u8 *out)
 
void ComputeAuthHA1 (u8 *buf, const char *user, const char *pass, const char *realm)
 
void ComputeAuthHA2 (u8 *buf, const char *method, const char *url)
 
void ComputeAuthResponse (char *buf, const u8 *ha1, const char *nonce, const char *nc, const char *cnonce, const u8 *ha2)
 
void MD5AddData (HASH_SUM *theSum, const u8 *data, u32 len)
 
void MD5Calculate (HASH_SUM *theSum, u8 *result)
 
void MD5Initialize (HASH_SUM *theSum)
 
void yDigestAuthorization (char *buf, int bufsize, const char *user, const char *realm, const u8 *ha1, const char *nonce, const char *opaque, u32 *nc, const char *method, const char *uri)
 
void yInitPsk (const char *pass, const char *ssid)
 
int yIterPsk (u8 *res, const char *ssid)
 
int yParseWWWAuthenticate (char *replybuf, int replysize, char **method, char **realm, char **qop, char **nonce, char **opaque)
 
u8 * ySHA1 (const char *text)
 

Macro Definition Documentation

#define HTTP_AUTH_MD5_SIZE   16

Definition at line 48 of file ykey.h.

#define HTTP_AUTH_MD5_STRLEN   (HTTP_AUTH_MD5_SIZE*2)

Definition at line 49 of file ykey.h.

Function Documentation

void bin2str ( char *  to,
const u8 *  p,
u16  len,
u8  addnull 
)

Definition at line 63 of file ykey.c.

int CheckWSAuth ( u32  nonce,
const u8 *  ha1,
const u8 *  to_verify,
u8 *  out 
)

Definition at line 158 of file ykey.c.

void ComputeAuthHA1 ( u8 *  buf,
const char *  user,
const char *  pass,
const char *  realm 
)

Definition at line 77 of file ykey.c.

void ComputeAuthHA2 ( u8 *  buf,
const char *  method,
const char *  url 
)

Definition at line 98 of file ykey.c.

void ComputeAuthResponse ( char *  buf,
const u8 *  ha1,
const char *  nonce,
const char *  nc,
const char *  cnonce,
const u8 *  ha2 
)

Definition at line 118 of file ykey.c.

void MD5AddData ( HASH_SUM theSum,
const u8 *  data,
u32  len 
)

Definition at line 634 of file ykey.c.

void MD5Calculate ( HASH_SUM theSum,
u8 *  result 
)
void MD5Initialize ( HASH_SUM theSum)

Definition at line 540 of file ykey.c.

void yDigestAuthorization ( char *  buf,
int  bufsize,
const char *  user,
const char *  realm,
const u8 *  ha1,
const char *  nonce,
const char *  opaque,
u32 *  nc,
const char *  method,
const char *  uri 
)

Definition at line 269 of file ykey.c.

void yInitPsk ( const char *  pass,
const char *  ssid 
)

Definition at line 445 of file ykey.c.

int yIterPsk ( u8 *  res,
const char *  ssid 
)

Definition at line 463 of file ykey.c.

int yParseWWWAuthenticate ( char *  replybuf,
int  replysize,
char **  method,
char **  realm,
char **  qop,
char **  nonce,
char **  opaque 
)

Definition at line 192 of file ykey.c.

u8* ySHA1 ( const char *  text)

Definition at line 425 of file ykey.c.



yoctopuce_altimeter
Author(s): Anja Sheppard
autogenerated on Mon Jun 10 2019 15:49:13