Go to the source code of this file.
Data Structures | |
struct | CcsSec_secretKey |
struct | SHA1_hash_t |
struct | CCS_RAND_state |
Functions | |
int | CCS_AUTH_makeSecretKey (const char *str, CcsSec_secretKey *key) |
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) |
unsigned int | CCS_RAND_next (CCS_RAND_state *s) |
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().
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().
unsigned int 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().