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:
@ -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 { \
|
||||
|
@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user