X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fsec%2Fmac%2Fhmac.h;fp=bertos%2Fsec%2Fmac%2Fhmac.h;h=038c457590adcad65464aadecabfd2166d072441;hb=9f24779338003c85f83e64b9dcc7aa2a430ca8ff;hp=88de9fab135ebbd13bbfaffb4f789fd9ecaafa82;hpb=ae3571e0d7273f8642468c6a0958c29c05dc7b2a;p=bertos.git diff --git a/bertos/sec/mac/hmac.h b/bertos/sec/mac/hmac.h index 88de9fab..038c4575 100644 --- a/bertos/sec/mac/hmac.h +++ b/bertos/sec/mac/hmac.h @@ -32,7 +32,7 @@ * * \brief HMAC (RFC 2104) implementation * \author Giovanni Bajo - * + * */ #ifndef SEC_MAC_HMAC_H @@ -42,20 +42,20 @@ #include #include -typedef struct HMAC_Context +typedef struct HmacContext { Mac m; - Hash *h; + Hash *h; uint8_t key[64]; -} HMAC_Context; +} HmacContext; -void HMAC_init(HMAC_Context* hmac, Hash *h); +void hmac_init(HmacContext* hmac, Hash *h); -#define HMAC_stackinit(...) \ - ({ HMAC_Context *ctx = alloca(sizeof(HMAC_Context)); HMAC_init(ctx, ##__VA_ARGS__); &ctx->m; }) +#define hmac_stackinit(...) \ + ({ HmacContext *ctx = alloca(sizeof(HmacContext)); hmac_init(ctx, ##__VA_ARGS__); &ctx->m; }) -int HMAC_testSetup(void); -int HMAC_testRun(void); -int HMAC_testTearDown(void); +int hmac_testSetup(void); +int hmac_testRun(void); +int hmac_testTearDown(void); #endif /* SEC_MAC_HMAC_H */