/*
* CRAM-MD5 (RFC 2195) compatibility code
* Copyright (c) 2003 Joshua Goodall <joshua@roughtrade.net>
*
* This software is released under the MIT license.
*/
#include "lib.h"
#include "md5.h"
#include "hmac-cram-md5.h"
unsigned char context_digest[CRAM_MD5_CONTEXTLEN])
{
unsigned char *cdp;
*(p)++ = (c) & 0xff; \
*(p)++ = (c) >> 8 & 0xff; \
*(p)++ = (c) >> 16 & 0xff; \
*(p)++ = (c) >> 24 & 0xff; \
} STMT_END
}
const unsigned char context_digest[CRAM_MD5_CONTEXTLEN])
{
const unsigned char *cdp;
(c) = (*p++); \
(c) += (*p++ << 8); \
(c) += (*p++ << 16); \
(c) += ((uint32_t)(*p++) << 24); \
} STMT_END
}