PPL Logo

conv-ccs/ccs-auth.c File Reference

Go to the source code of this file.

Typedefs

typedef unsigned int word32
typedef unsigned char byte8

Functions

int CCS_AUTH_makeSecretKey (const char *str, CcsSec_secretKey *key)
static void SHA1_init (word32 *state)
static word32 rotlFixed (word32 x, word32 y)
static void SHA1_transform (word32 *state, const word32 *data)
static void SHA1_hash (const byte8 *in, SHA1_hash_t *out)
int main (int argc, char *argv[])
static int SHA1_differ (const SHA1_hash_t *a, const SHA1_hash_t *b)
void CCS_AUTH_hash (const CcsSec_secretKey *key, unsigned int salt, const CcsMessageHeader *hdrOrNull, SHA1_hash_t *out)
int CCS_AUTH_differ (const CcsSec_secretKey *key, unsigned int salt, const CcsMessageHeader *hdrOrNull, SHA1_hash_t *given)
void CCS_RAND_new (CCS_RAND_state *s)
word32 CCS_RAND_next (CCS_RAND_state *s)


Typedef Documentation

typedef unsigned int word32

Definition at line 49 of file ccs-auth.c.

typedef unsigned char byte8

Definition at line 50 of file ccs-auth.c.


Function Documentation

int CCS_AUTH_makeSecretKey ( const char *  str,
CcsSec_secretKey key 
)

Definition at line 14 of file ccs-auth.c.

References CcsSec_secretKey::data.

Referenced by CcsSecMan_default().

static void SHA1_init ( word32 state  )  [static]

Definition at line 52 of file ccs-auth.c.

Referenced by SHA1_hash().

static word32 rotlFixed ( word32  x,
word32  y 
) [static]

Definition at line 61 of file ccs-auth.c.

static void SHA1_transform ( word32 state,
const word32 data 
) [static]

Definition at line 87 of file ccs-auth.c.

References c.

Referenced by SHA1_hash().

static void SHA1_hash ( const byte8 in,
SHA1_hash_t out 
) [static]

Definition at line 133 of file ccs-auth.c.

References SHA1_hash_t::data, SHA1_init(), and SHA1_transform().

Referenced by CCS_AUTH_hash(), CCS_RAND_next(), and main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 168 of file ccs-auth.c.

References SHA1_hash_t::data, printf(), and SHA1_hash().

static int SHA1_differ ( const SHA1_hash_t a,
const SHA1_hash_t b 
) [static]

Definition at line 182 of file ccs-auth.c.

References SHA1_hash_t::data.

Referenced by CCS_AUTH_differ().

void CCS_AUTH_hash ( const CcsSec_secretKey key,
unsigned int  salt,
const CcsMessageHeader hdrOrNull,
SHA1_hash_t out 
)

int CCS_AUTH_differ ( const CcsSec_secretKey key,
unsigned int  salt,
const CcsMessageHeader hdrOrNull,
SHA1_hash_t given 
)

void CCS_RAND_new ( CCS_RAND_state s  ) 

Definition at line 238 of file ccs-auth.c.

References CCS_RAND_state::state.

Referenced by CCS_AUTH_new(), CcsConnectIpWithTimeout(), and CcsSecMan_make_otp().

word32 CCS_RAND_next ( CCS_RAND_state s  ) 


Generated on Wed May 23 08:06:40 2012 for Charm++ by  doxygen 1.5.5