EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Data Structures | Macros | Functions
md5_internal.h File Reference

MD5 internal definitions. More...

#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for md5_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MD5Context
 

Macros

#define md5_vector(num_elem, addr, len, mac)    edge_md5_vector((num_elem), (addr), (len), (mac))
 

Functions

int edge_md5_vector (size_t num_elem, const uint8_t *addr[], const size_t *len, uint8_t *mac)
 

Detailed Description

MD5 internal definitions.

Author
Jouni Malinen

Macro Definition Documentation

◆ md5_vector

#define md5_vector (   num_elem,
  addr,
  len,
  mac 
)     edge_md5_vector((num_elem), (addr), (len), (mac))

Function Documentation

◆ edge_md5_vector()

int edge_md5_vector ( size_t  num_elem,
const uint8_t *  addr[],
const size_t *  len,
uint8_t *  mac 
)

MD5 hash for data vector

Parameters
num_elemNumber of elements in the data vector
addrPointers to the data areas
lenLengths of the data blocks
[out]macBuffer for the hash
Return values
0on success
-1on failure
Author
Jouni Malinen j@w1..nosp@m.fi
Date
2009
Remarks
The source of this code was adapted from md5_internal() in commit 0a5d68aba50c385e316a30d834d5b6174a4041d2 in src/crypto/md5-internal.c of the hostap project, see https://w1.fi/cgit/hostap/tree/src/crypto/md5-internal.c?id=0a5d68aba50c385e316a30d834d5b6174a4041d2#n34