diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-04-25 22:46:05 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-05-06 09:04:41 +0200 |
| commit | 20d4a472800cbc9338f0c6c9c3dfce8eb13663c7 (patch) | |
| tree | b796528ce6272c95c3e0fafe937fcc28898a3afc /src/lib/tests/CMakeLists.txt | |
| parent | 77fdc9f1d162b2307d7752d56930710858f702b4 (diff) | |
| download | ouroboros-20d4a472800cbc9338f0c6c9c3dfce8eb13663c7.tar.gz ouroboros-20d4a472800cbc9338f0c6c9c3dfce8eb13663c7.zip | |
lib: Add CRC-64/NVMe checksum
Add CRC-64/NVMe implementation with compile-time hardware backend
selection:
x86 PCLMUL+SSE4.1 fold-by-16 (HAVE_PCLMUL)
aarch64 PMULL fold-by-16 when (HAVE_PMULL)
and a byte-table fallback.
It's added as HASH_CRC64 to enum hash_algo (in the internal-use-only
section after HASH_MD5). Both mem_hash() and hash_len() early-return
for HASH_CRC64 because libgcrypt has no CRC-64/NVMe.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/tests/CMakeLists.txt')
| -rw-r--r-- | src/lib/tests/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/tests/CMakeLists.txt b/src/lib/tests/CMakeLists.txt index 5a2f2c52..417ec4b0 100644 --- a/src/lib/tests/CMakeLists.txt +++ b/src/lib/tests/CMakeLists.txt @@ -11,6 +11,7 @@ create_test_sourcelist(${PARENT_DIR}_tests test_suite.c bitmap_test.c btree_test.c crc32_test.c + crc64_test.c crypt_test.c hash_test.c kex_test.c |
