2
0
mirror of https://github.com/boostorg/hash2.git synced 2026-01-19 04:12:12 +00:00

272 Commits

Author SHA1 Message Date
Christian Mazakas
f865be562a add with_secret_and_seed tests 2025-05-05 11:55:50 -07:00
Christian Mazakas
5d4f9375ae update existing xxh3 tests 2025-05-05 11:02:33 -07:00
Christian Mazakas
9c079e373f update method names to use camel case 2025-05-05 10:43:52 -07:00
Rene Rivera
572df91894 Add support for modular build structure. 2025-05-02 20:52:18 -05:00
Peter Dimov
51588db04d Provide separate named xxh3_128 constructors that match the reference implmentation 2025-05-02 18:51:27 +03:00
Christian Mazakas
9032844165 remove non-constant expression for gcc-5 2025-05-01 09:46:35 -07:00
Peter Dimov
05317d5030 Handle the case where n is less than the minimum secret size; this is a precondition violation in XXH3, but we want to do something reasonable 2025-04-30 19:46:57 +03:00
Peter Dimov
154abf359b Add a constructor that takes both a seed and a secret to xxh3_128, to match XXH3_withSecretAndSeed 2025-04-30 19:03:52 +03:00
Peter Dimov
6296d22fc3 Add more byte sequence seed tests to concept.cpp 2025-04-30 14:55:53 +03:00
Peter Dimov
5adcda338d Add more test cases to test/multiple_result.cpp, to cover the various xxh3 code paths 2025-04-29 15:11:17 +03:00
Peter Dimov
e72479b738 Rename detail::uint128_t to detail::uint128 2025-04-27 19:45:55 +03:00
Christian Mazakas
d66dcba3cd add xxh3-128 to existing tests 2025-04-25 13:03:07 -07:00
Christian Mazakas
f8964e962c add xxh3-128 implementation 2025-04-25 13:03:07 -07:00
Christian Mazakas
c8979facb4 add 128-bit mul 2025-04-25 13:03:07 -07:00
Christian Mazakas
6efb995861 add 32-bit, 64-bit byteswap implementation 2025-04-25 10:26:19 -07:00
Peter Dimov
d651f6c8ee test/hash_append_range_2: the test is endianness-dependent, so use little_endian_flavor instead of default_flavor 2025-04-20 02:49:22 +03:00
Christian Mazakas
1a95cd1dd6 add hmac blake2 2025-03-18 13:36:20 -07:00
Christian Mazakas
6ccdc64449 add blake2 implementation 2025-03-13 12:49:24 -07:00
Peter Dimov
c421e62025 Replace get_integral_result multipliers 2025-03-07 20:55:14 +02:00
Peter Dimov
cfadf8d054 Update get_integral_result_4.cpp, get_integral_result_5.cpp 2025-03-07 03:53:38 +02:00
Peter Dimov
e77ea4d276 Update append_map.cpp, append_set.cpp 2025-03-07 03:50:34 +02:00
Peter Dimov
b414c6817f Update get_integral_result to call result more than once when expanding 2025-03-07 03:47:17 +02:00
Peter Dimov
c770e563aa Avoid GCC 4.8 warnings 2025-03-05 18:52:42 +02:00
Peter Dimov
093f1de8d4 Update test/get_integral_result_5.cpp 2025-03-05 18:17:21 +02:00
Peter Dimov
4c5c9db8ec Update test/get_integral_result_4.cpp 2025-03-05 18:12:15 +02:00
Peter Dimov
180918b042 Update test/get_integral_result_3.cpp 2025-03-05 17:36:54 +02:00
Peter Dimov
dc4f717c1e Update test/get_integral_result_2.cpp 2025-03-05 17:29:59 +02:00
Peter Dimov
27592e9ad3 Update test/get_integral_result.cpp 2025-03-05 17:19:12 +02:00
Peter Dimov
dc5f5eb7c4 Update get_integral_result uses to reflect the API change 2025-03-05 17:11:31 +02:00
Peter Dimov
5af4a71d5e Update append_map.cpp, append_set.cpp 2025-03-05 14:50:24 +02:00
Peter Dimov
9557589c07 Revert "Switch Flavor::size_type for the predefined flavors to std::uint64_t; if we at some point need to append a foreign size_t hash, e.g. from std::hash<T>, we need to not throw away information"
This reverts commit 877f6c9342.
2025-03-05 14:45:22 +02:00
Peter Dimov
a0469cea49 Move hash_append_provider from detail to hash2 2025-03-04 21:53:50 +02:00
Peter Dimov
e72b8dc9c9 Remove default flavor argument from hash_append_provider functions 2025-03-04 21:44:40 +02:00
Peter Dimov
5ffaaf59cb Avoid spurious msvc-14.0 warning 2025-03-04 21:21:30 +02:00
Peter Dimov
7a498a8eb6 Add test/detail_hash_append_provider.cpp 2025-03-04 21:09:47 +02:00
Peter Dimov
f39fc8a7f2 Add the appropriate hash_append API to hash_append_provider; use it in test/hash_append_5.cpp 2025-03-04 21:01:41 +02:00
Peter Dimov
c3c23b3382 Add a Provider argument to tag_invoke 2025-03-04 20:53:55 +02:00
Peter Dimov
9cdec70834 Change last parameter of tag_invoke to pointer, to avoid implicit conversions and infinite loops 2025-03-04 17:13:23 +02:00
Peter Dimov
ede9eff1c0 Add example/json_value.cpp 2025-03-04 16:54:22 +02:00
Peter Dimov
b64d7804ab Add test/append_tag_invoke_4.cpp, from https://github.com/jbcoe/poison_hash_append 2025-03-04 16:46:17 +02:00
Peter Dimov
7178037091 Rename hash_append_sized_range to hash_append_range_and_size 2025-03-03 19:29:44 +02:00
Peter Dimov
d19b0a2457 Remove unnecessary reinterpret_casts 2025-03-02 17:07:21 +02:00
Peter Dimov
80b7c78bb5 Add void const* overloads to byte seed constructors 2025-03-02 17:03:50 +02:00
Peter Dimov
6605a71ec2 Test that byte seeding is not just a call to update 2025-03-02 16:38:58 +02:00
Christian Mazakas
8a2b67d018 add msvc 14.1 workarounds 2025-02-05 09:49:50 -08:00
Christian Mazakas
6dec8da411 extend sha-2 constexpr tests 2025-02-04 15:17:47 -08:00
Christian Mazakas
cc3dec0bd7 clean up sha-3 constexpr tests 2025-02-04 15:17:47 -08:00
Peter Dimov
f2c2f01b9e Update test/sha2_cx.cpp 2025-02-03 18:47:20 +02:00
Peter Dimov
00b38b78c9 Update test values, broken by the addition of the missing m_ = 0; in keccak_base<>::result 2025-02-03 06:52:03 +02:00
Peter Dimov
a45b906453 Add extended output tests to test/shake.cpp 2025-02-03 06:27:31 +02:00