EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
md5_internal.h
Go to the documentation of this file.
1 /*
2  * MD5 internal definitions
3  * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
15 #ifndef MD5_INTERNAL_H
16 #define MD5_INTERNAL_H
17 
18 #include <stdint.h>
19 #include <sys/types.h>
20 #include <unistd.h>
21 
22 struct MD5Context {
23  uint32_t buf[4];
24  uint32_t bits[2];
25  uint8_t in[64];
26 };
27 
28 #define md5_vector(num_elem, addr, len, mac) \
29  edge_md5_vector((num_elem), (addr), (len), (mac))
30 
50 int edge_md5_vector(size_t num_elem, const uint8_t *addr[], const size_t *len,
51  uint8_t *mac);
52 
53 #endif /* MD5_INTERNAL_H */
int edge_md5_vector(size_t num_elem, const uint8_t *addr[], const size_t *len, uint8_t *mac)
Definition: md5_internal.c:32
Definition: md5_internal.h:22
uint8_t in[64]
Definition: md5_internal.h:25
uint32_t bits[2]
Definition: md5_internal.h:24
uint32_t buf[4]
Definition: md5_internal.h:23