1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Implement hmac in the MD layer

This commit is contained in:
Manuel Pégourié-Gonnard
2015-03-24 16:48:22 +01:00
parent 40fc4155d3
commit 8379a82a76
4 changed files with 65 additions and 5 deletions

View File

@ -78,6 +78,10 @@ typedef struct {
/** 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 { \

View File

@ -54,6 +54,9 @@ struct _md_info_t {
/** 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 );