gsasl  2.2.1
Macros | Functions
digest.c File Reference
#include <config.h>
#include <string.h>
#include "digest.h"
#include "gc.h"

Go to the source code of this file.

Macros

#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])
 

Macro Definition Documentation

◆ HEXCHAR

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

Definition at line 57 of file digest.c.

Function Documentation

◆ cram_md5_digest()

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 60 of file digest.c.