This commit is contained in:
Luca Deri
2019-08-22 19:25:58 +02:00
parent 385e848a0f
commit e7c0ac37d8
8 changed files with 471 additions and 225 deletions
+18
View File
@@ -0,0 +1,18 @@
/*
Contributed code pasted here to make nDPI self-contained with no
external dependencies
*/
/* **************************************** */
typedef struct ndpi_MD5Context {
uint32_t buf[4];
uint32_t bits[2];
unsigned char in[64];
} ndpi_MD5_CTX;
/* **************************************** */
extern void ndpi_MD5Init(ndpi_MD5_CTX *ctx);
extern void ndpi_MD5Update(ndpi_MD5_CTX *ctx, unsigned char const *buf, unsigned len);
extern void ndpi_MD5Final(unsigned char digest[16], ndpi_MD5_CTX *ctx);