
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) |
Definition at line 49 of file ccs-auth.C.
| typedef unsigned char byte8 |
Definition at line 50 of file ccs-auth.C.
| 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.
References PUP::u.
Referenced by SHA1_hash().

Definition at line 87 of file ccs-auth.C.
References PUP::a, PUP::b, c, and PUP::d.
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, message, SHA1_init(), SHA1_transform(), and PUP::u.
Referenced by CCS_AUTH_hash(), CCS_RAND_next(), and main().


Definition at line 168 of file ccs-auth.C.
References SHA1_hash_t::data, h, message, 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 | |||
| ) |
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().


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


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


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


1.5.5