Implement hmac in the MD layer
diff --git a/include/mbedtls/md.h b/include/mbedtls/md.h
index 6728d8d..335bc72 100644
--- a/include/mbedtls/md.h
+++ b/include/mbedtls/md.h
@@ -78,6 +78,10 @@
/** Digest-specific context */
void *md_ctx;
+
+ /** HMAC part of the context (WIP: fixed size) */
+ unsigned char ipad[128];
+ unsigned char opad[128];
} md_context_t;
#define MD_CONTEXT_T_INIT { \
diff --git a/include/mbedtls/md_wrap.h b/include/mbedtls/md_wrap.h
index 6fe377e..e0c6354 100644
--- a/include/mbedtls/md_wrap.h
+++ b/include/mbedtls/md_wrap.h
@@ -54,6 +54,9 @@
/** Output length of the digest function */
int size;
+ /** Block length of the digest function */
+ int block_size;
+
/** Digest initialisation function */
void (*starts_func)( void *ctx );