gsasl  1.10.0
About: GNU SASL is an implementation of the Simple Authentication and Security Layer (SASL). Development version.
  Fossies Dox: gsasl-1.10.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

mechtools.h File Reference
#include <stddef.h>
#include <stdbool.h>
#include <gsasl.h>
Include dependency graph for mechtools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int _gsasl_parse_gs2_header (const char *data, size_t len, char **authzid, size_t *headerlen)
 
int _gsasl_gs2_generate_header (signed char nonstd, char cbflag, const char *cbname, const char *authzid, size_t extralen, const char *extra, char **gs2h, size_t *gs2hlen)
 
void _gsasl_hex_encode (const char *in, size_t inlen, char *out)
 
void _gsasl_hex_decode (const char *hexstr, char *bin)
 
signed char _gsasl_hex_p (const char *hexstr)
 
int _gsasl_hash (Gsasl_hash hash, const char *in, size_t inlen, char *out)
 
int _gsasl_hmac (Gsasl_hash hash, const char *key, size_t keylen, const char *in, size_t inlen, char *outhash)
 
int _gsasl_pbkdf2 (Gsasl_hash hash, const char *password, size_t passwordlen, const char *salt, size_t saltlen, unsigned int c, char *dk, size_t dklen)
 

Function Documentation

◆ _gsasl_gs2_generate_header()

int _gsasl_gs2_generate_header ( signed char  nonstd,
char  cbflag,
const char *  cbname,
const char *  authzid,
size_t  extralen,
const char *  extra,
char **  gs2h,
size_t gs2hlen 
)

◆ _gsasl_hash()

int _gsasl_hash ( Gsasl_hash  hash,
const char *  in,
size_t  inlen,
char *  out 
)

◆ _gsasl_hex_decode()

void _gsasl_hex_decode ( const char *  hexstr,
char *  bin 
)

Definition at line 262 of file mechtools.c.

References hex_to_char().

Referenced by _gsasl_scram_client_step(), and gsasl_hex_from().

◆ _gsasl_hex_encode()

void _gsasl_hex_encode ( const char *  in,
size_t  inlen,
char *  out 
)

Definition at line 226 of file mechtools.c.

References c, and p.

Referenced by gsasl_hex_to(), and set_saltedpassword().

◆ _gsasl_hex_p()

signed char _gsasl_hex_p ( const char *  hexstr)

Definition at line 274 of file mechtools.c.

References NULL.

Referenced by _gsasl_scram_client_step(), and gsasl_hex_from().

◆ _gsasl_hmac()

int _gsasl_hmac ( Gsasl_hash  hash,
const char *  key,
size_t  keylen,
const char *  in,
size_t  inlen,
char *  outhash 
)

◆ _gsasl_parse_gs2_header()

int _gsasl_parse_gs2_header ( const char *  data,
size_t  len,
char **  authzid,
size_t headerlen 
)

◆ _gsasl_pbkdf2()

int _gsasl_pbkdf2 ( Gsasl_hash  hash,
const char *  password,
size_t  passwordlen,
const char *  salt,
size_t  saltlen,
unsigned int  c,
char *  dk,
size_t  dklen 
)