diff options
author | Luca Deri <deri@ntop.org> | 2019-08-22 19:25:58 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-08-22 19:25:58 +0200 |
commit | e7c0ac37d87958c80115e7553ea39b26668ce360 (patch) | |
tree | a3d6adb3b5379fc9ac67916cda6dbd8f5a09ae29 /src/lib/third_party/include | |
parent | 385e848a0f61b9e517f096b010070a6dd61d1f62 (diff) |
Implemented HASSH (https://github.com/salesforce/hassh)
Diffstat (limited to 'src/lib/third_party/include')
-rw-r--r-- | src/lib/third_party/include/ndpi_md5.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/third_party/include/ndpi_md5.h b/src/lib/third_party/include/ndpi_md5.h new file mode 100644 index 000000000..f7dd9b946 --- /dev/null +++ b/src/lib/third_party/include/ndpi_md5.h @@ -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); |