aboutsummaryrefslogtreecommitdiff
path: root/test_vectors
AgeCommit message (Collapse)Author
2026-01-08update to the 2024 editionJack O'Connor
While we're taking this MSRV bump, we can also update `constant_time_eq`, which uses the 2024 edition in its most recent versions.
2025-03-30add the `hazmat` module and deprecate the undocumented `guts` moduleJack O'Connor
https://github.com/BLAKE3-team/BLAKE3/pull/458
2025-03-18make the test_vectors tests WASM-compatibleJack O'Connor
2025-03-18add wasm tests to CIJack O'Connor
2023-05-23Fix typosJoel Rosdahl
2023-03-25upgrade all Cargo.toml files to edition=2021Jack O'Connor
The MSRV is already 1.60, so this doesn't affect much. The only impact to other code is that we no longer need to explicitly import TryInto.
2021-11-04add Hasher::countJack O'Connor
2021-03-28more cleaup of undocumented APIJack O'Connor
2021-02-28make derive_key() return an arrayJack O'Connor
2020-09-29add more test cases at shorter input lengthsJack O'Connor
2020-06-29stop being a jerk and add the context string to test_vectors.jsonJack O'Connor
2020-03-29refactor the Cargo feature setJack O'Connor
The biggest change here is that assembly implementations are enabled by default. Added features: - "pure" (Pure Rust, with no C or assembly implementations.) Removed features: - "c" (Now basically the default.) Renamed features; - "c_prefer_intrinsics" -> "prefer_intrinsics" - "c_neon" -> "neon" Unchanged: - "rayon" - "std" (Still the only feature on by default.)
2020-02-12integrate assembly implementations into the blake3 crateJack O'Connor
2020-01-22add a larger test caseJack O'Connor
One thing I like to test is that, if I hack simd_degree to be higher than MAX_SIMD_DEGREE, assertions fire. This requires a test case long enough to exceed that number of chunks.
2020-01-12include the right context string in the test_vectors.json commentJack O'Connor
I must've written the comment one way, and then changed the context string later, without realizing that I'd copied it. Apologies to everyone whose time I wasted with this. Fixes https://github.com/BLAKE3-team/BLAKE3/issues/15.
2020-01-09fix cross_test.shJack O'Connor
This is a hacky test script, and it broke when I added a feature flag, while our CI was past quota :(
2020-01-05switch to the new permutationsJack O'Connor
2020-01-04turn on AVX-512 in the test vectorsJack O'Connor
2019-12-28make derive_key take a key of any lengthJack O'Connor
The previous version of this API called for a key of exactly 256 bits. That's good for optimal performance, but it would mean losing the use-with-other-algorithms property for applications whose input keys are a different size. There's no way for an abstraction over the previous version to provide reliable domain separation for the "extract" step.
2019-12-12rename "offset" to "counter" and always increment it by 1Jack O'Connor
This is simpler than sometimes incrementing by CHUNK_LEN and other times incrementing by BLOCK_LEN.
2019-12-12reduce the CHUNK_LEN from 2048 bytes to 1024 bytesJack O'Connor
Smaller chunk sizes are a big benefit for parallelism at shorter input lengths, and recent benchmarks show that this reduction has a relative small cost in terms of peak throughput. It's also a nice round number.
2019-12-12fix the test_vectors buildJack O'Connor
2019-12-11run the test vectors on cross tests (ARM, MIPS) on CIJack O'Connor
2019-12-11account for Windows newlines when checking for test vector changesJack O'Connor
2019-12-11test_checked_in_vectors_up_to_dateJack O'Connor
2019-12-11test against test_vectors.json in CIJack O'Connor
2019-12-11check in test_vectors.jsonJack O'Connor
This file is generated with: cd ./test_vectors cargo run --bin generate > ./test_vectors.json
2019-12-11add the test_vectors sub-crateJack O'Connor