diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-16 12:04:59 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-16 13:40:12 +0200 |
commit | 97ef24340da7d3f55a39ba16b400d13f9bbe9e60 (patch) | |
tree | e13656c267343db47a4f79d2098222909222736d /include/ouroboros/crc32.h | |
parent | c884fb9d6b3d3ea59f5fc7c5d709bfff4fcf1849 (diff) | |
download | ouroboros-97ef24340da7d3f55a39ba16b400d13f9bbe9e60.tar.gz ouroboros-97ef24340da7d3f55a39ba16b400d13f9bbe9e60.zip |
ipcpd: Allow specifying the hash algorithm to use
Currently CRC32, MD5, and SHA3 (224, 256, 384 and 512 bit) are supported.
Diffstat (limited to 'include/ouroboros/crc32.h')
-rw-r--r-- | include/ouroboros/crc32.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ouroboros/crc32.h b/include/ouroboros/crc32.h index dccdf7cb..800d6c4f 100644 --- a/include/ouroboros/crc32.h +++ b/include/ouroboros/crc32.h @@ -27,6 +27,8 @@ #include <stdint.h> #include <stddef.h> +#define CRC32_HASH_LEN 4 + void crc32(uint32_t * crc, const void * buf, size_t len); |