2 ** Copyright 1998 - 1999 Double Precision, Inc.
3 ** See COPYING for distribution information.
8 #include "../libhmac/hmac.h"
10 static void alloc_context( void (*func
)(void *, void *), void *arg
)
14 (*func
)((void *)&c
, arg
);
17 static void alloc_hash( void (*func
)(unsigned char *, void *), void *arg
)
19 unsigned char c
[MD5_DIGEST_SIZE
];
24 struct hmac_hashinfo hmac_md5
= {
28 sizeof(struct MD5_CONTEXT
),
29 (void (*)(void *))md5_context_init
,
30 (void (*)(void *, const void *, unsigned))md5_context_hashstream
,
31 (void (*)(void *, unsigned long))md5_context_endstream
,
32 (void (*)(void *, unsigned char *))md5_context_digest
,
33 (void (*)(void *, const unsigned char *))md5_context_restore
,