gsasl  1.8.0
Data Structures | Defines | Functions
scram/server.c File Reference
#include "scram.h"
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include "minmax.h"
#include "tokens.h"
#include "parser.h"
#include "printer.h"
#include "gc.h"
#include "memxor.h"

Go to the source code of this file.

Data Structures

struct  scram_server_state

Defines

#define DEFAULT_SALT_BYTES   12
#define SNONCE_ENTROPY_BYTES   18
#define CLIENT_KEY   "Client Key"
#define SERVER_KEY   "Server Key"

Functions

int _gsasl_scram_sha1_server_start (Gsasl_session *sctx, void **mech_data)
int _gsasl_scram_sha1_plus_server_start (Gsasl_session *sctx, void **mech_data)
int _gsasl_scram_sha1_server_step (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)
void _gsasl_scram_sha1_server_finish (Gsasl_session *sctx, void *mech_data)

Define Documentation

#define CLIENT_KEY   "Client Key"
#define DEFAULT_SALT_BYTES   12

Definition at line 48 of file scram/server.c.

#define SERVER_KEY   "Server Key"
#define SNONCE_ENTROPY_BYTES   18

Definition at line 49 of file scram/server.c.


Function Documentation

int _gsasl_scram_sha1_plus_server_start ( Gsasl_session sctx,
void **  mech_data 
)

Definition at line 134 of file scram/server.c.

void _gsasl_scram_sha1_server_finish ( Gsasl_session sctx,
void *  mech_data 
)

Definition at line 457 of file scram/server.c.

int _gsasl_scram_sha1_server_start ( Gsasl_session sctx,
void **  mech_data 
)

Definition at line 128 of file scram/server.c.

int _gsasl_scram_sha1_server_step ( Gsasl_session sctx,
void *  mech_data,
const char *  input,
size_t  input_len,
char **  output,
size_t *  output_len 
)

Definition at line 140 of file scram/server.c.