Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

su_md5.h File Reference

Detailed Description

MD5 digest interface.


Definition in file su_md5.h.

#include "sofia-sip/su_types.h"

Go to the source code of this file.


struct  su_md5_t


#define SU_MD5_DIGEST_SIZE   16
#define SU_MD5_STR0UPDATE(ctx, s)   su_md5_update(ctx, (s) ? (s) : "", (s) ? strlen(s) + 1 : 1)
#define SU_MD5_STRI0UPDATE(ctx, s)   su_md5_iupdate(ctx, (s) ? (s) : "", (s) ? strlen(s) : 1)
#define SU_MD5_STRIUPDATE(ctx, s)   ((s) ? su_md5_iupdate(ctx, (s), strlen(s)) : (void)0)
#define SU_MD5_STRUPDATE(ctx, s)   ((s) ? su_md5_update(ctx, (s), strlen(s)) : (void)0)


SOFIAPUBFUN void su_md5_deinit (su_md5_t *context)
SOFIAPUBFUN void su_md5_digest (su_md5_t const *ctx, uint8_t digest[SU_MD5_DIGEST_SIZE])
SOFIAPUBFUN void su_md5_hexdigest (su_md5_t const *ctx, char digest[2 *SU_MD5_DIGEST_SIZE+1])
SOFIAPUBFUN void su_md5_init (su_md5_t *context)
SOFIAPUBFUN void su_md5_iupdate (su_md5_t *context, void const *buf, usize_t len)
SOFIAPUBFUN void su_md5_str0update (su_md5_t *ctx, char const *s)
SOFIAPUBFUN void su_md5_stri0update (su_md5_t *ctx, char const *s)
SOFIAPUBFUN void su_md5_striupdate (su_md5_t *ctx, char const *s)
SOFIAPUBFUN void su_md5_strupdate (su_md5_t *ctx, char const *s)
SOFIAPUBFUN void su_md5_update (su_md5_t *context, void const *buf, usize_t len)

Generated by  Doxygen 1.6.0   Back to index