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().

Here is the caller graph for this function:

static void SHA1_init ( word32 state  )  [static]

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

References PUP::u.

Referenced by SHA1_hash().

Here is the caller graph for this function:

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

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

References PUP::u.

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

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

References PUP::a, PUP::b, c, and PUP::d.

Referenced by SHA1_hash().

Here is the caller graph for this function:

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, message, SHA1_init(), SHA1_transform(), and PUP::u.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

References SHA1_hash_t::data, h, message, and SHA1_hash().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

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

Definition at line 195 of file ccs-auth.C.

References ChMessageInt_new(), and SHA1_hash().

Referenced by CCS_AUTH_differ(), CcsImpl_authInit(), CcsSendRequestGeneric(), CcsServer_createSalt(), and CcsServer_writeReply().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 218 of file ccs-auth.C.

References CCS_AUTH_hash(), and SHA1_differ().

Referenced by CcsImpl_authInit(), CcsImpl_recvReplyAuth(), CcsServer_createSalt(), and CcsServer_SHA1_message().

Here is the call graph for this function:

Here is the caller graph for this function:

void CCS_RAND_new ( CCS_RAND_state s  ) 

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

References Ck::IO::close(), Ck::IO::open(), and CCS_RAND_state::state.

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

Here is the call graph for this function:

Here is the caller graph for this function:

word32 CCS_RAND_next ( CCS_RAND_state s  ) 

Definition at line 271 of file ccs-auth.C.

References SHA1_hash(), and CCS_RAND_state::state.

Referenced by CCS_AUTH_addClient(), CcsImpl_authInit(), CcsSecMan_make_otp(), CcsSendRequestGeneric(), and CcsServer_createSalt().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Mon Sep 21 07:59:40 2020 for Charm++ by  doxygen 1.5.5