*
* -->
*
- * \brief SHA-1 Hashing algorithm.
+ * \brief MD5 Hashing algorithm.
* \author Giovanni Bajo <rasky@develer.com>
*
- * $WIZ$ module_name = "sha1"
+ * $WIZ$ module_name = "md5"
*/
#ifndef SEC_HASH_MD5_H
#include <sec/hash.h>
#include <cfg/compiler.h>
+#include <alloca.h>
typedef struct
{
void MD5_init(MD5_Context *ctx);
+#define MD5_stackinit(...) \
+ ({ MD5_Context *ctx = alloca(sizeof(MD5_Context)); MD5_init(ctx , ##__VA_ARGS__); &ctx->h; })
+
int MD5_testSetup(void);
int MD5_testRun(void);
int MD5_testTearDown(void);