mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
core: add support of CRC32 algorithm in hash functions
This commit is contained in:
@@ -1978,6 +1978,9 @@ TEST(CoreString, Hash)
|
||||
WEE_CHECK_HASH_BIN(NULL, DATA_HASH, length, "not_an_algo");
|
||||
WEE_CHECK_HASH_HEX(NULL, DATA_HASH, length, "not_an_algo");
|
||||
|
||||
WEE_CHECK_HASH_BIN(DATA_HASH_CRC32, data, length, "crc32");
|
||||
WEE_CHECK_HASH_HEX(DATA_HASH_CRC32, data, length, "crc32");
|
||||
|
||||
WEE_CHECK_HASH_BIN(DATA_HASH_MD5, data, length, "md5");
|
||||
WEE_CHECK_HASH_HEX(DATA_HASH_MD5, data, length, "md5");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user