digest.c File Reference

#include <string.h>
#include "digest.h"
#include "gc.h"

Go to the source code of this file.

Defines

#define HEXCHAR(c)   ((c & 0x0F) > 9 ? 'a' + (c & 0x0F) - 10 : '0' + (c & 0x0F))

Functions

void cram_md5_digest (const char *challenge, size_t challengelen, const char *secret, size_t secretlen, char response[CRAM_MD5_DIGEST_LEN])


Define Documentation

#define HEXCHAR (  )     ((c & 0x0F) > 9 ? 'a' + (c & 0x0F) - 10 : '0' + (c & 0x0F))

Definition at line 55 of file digest.c.

Referenced by cram_md5_digest(), and digest_md5_hmac().


Function Documentation

void cram_md5_digest ( const char *  challenge,
size_t  challengelen,
const char *  secret,
size_t  secretlen,
char  response[CRAM_MD5_DIGEST_LEN] 
)

Definition at line 58 of file digest.c.

References HEXCHAR.

Referenced by _gsasl_cram_md5_client_step(), and _gsasl_cram_md5_server_step().


Generated on Tue Aug 22 12:06:07 2006 for gsasl by  doxygen 1.4.7