X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fsec%2Fhash%2Fmd5.h;h=a6d886df3a3ec07fd0277b1f6830d5b10c3d861f;hb=7c66ae1b30f81fd138f9f4b6ad49ac4d527af642;hp=c08a912b6ee3e5acacc1a4115c1ebae9e11dd62a;hpb=32a5cc64743e4667ae47f88525ee6d0162fcd4d0;p=bertos.git diff --git a/bertos/sec/hash/md5.h b/bertos/sec/hash/md5.h index c08a912b..a6d886df 100644 --- a/bertos/sec/hash/md5.h +++ b/bertos/sec/hash/md5.h @@ -30,10 +30,10 @@ * * --> * - * \brief SHA-1 Hashing algorithm. + * \brief MD5 Hashing algorithm. * \author Giovanni Bajo * - * $WIZ$ module_name = "sha1" + * $WIZ$ module_name = "md5" */ #ifndef SEC_HASH_MD5_H @@ -41,6 +41,7 @@ #include #include +#include typedef struct { @@ -53,6 +54,9 @@ 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);