FreeRDP
hmac_md5.h
1 #ifndef WINPR_HMAC_MD5
2 #define WINPR_HMAC_MD5
3 
4 #include <stddef.h>
5 
6 #include "md5.h"
7 
8 #define KEY_IOPAD_SIZE 64
9 typedef struct
10 {
11  WINPR_MD5_CTX icontext;
12  WINPR_MD5_CTX ocontext;
14 
15 void hmac_md5_init(WINPR_HMAC_MD5_CTX* ctx, const unsigned char* key, size_t key_len);
16 void hmac_md5_update(WINPR_HMAC_MD5_CTX* ctx, const unsigned char* text, size_t text_len);
17 void hmac_md5_finalize(WINPR_HMAC_MD5_CTX* ctx, unsigned char* hmac);
18 
19 #endif