1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-21 23:36:03 +02:00
Commit Graph

147 Commits

Author SHA1 Message Date
Cesar Eduardo Barros 9f509a8f1f Inline trivial functions
For the Read and Write traits, this also allows the compiler to see that
the return value is always Ok, allowing it to remove the Err case from
the caller as dead code.
2020-01-12 18:27:42 -05:00
Cesar Eduardo Barros 4690c5f14e Use fixed-size constant_time_eq
The generic constant_time_eq has several branches on the slice length,
which are not necessary when the slice length is known. However, the
optimizer is not allowed to look into the core of constant_time_eq, so
these branches cannot be elided.

Use instead a fixed-size variant of constant_time_eq, which has no
branches since the length is known.
2020-01-12 17:40:57 -05:00
Jack O'Connor b04974461a include the right context string in the test_vectors.json comment
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-12 17:07:23 -05:00
Jack O'Connor 793c8a2444 disambiguate the two test
We can't change the context used in test_vectors.json without breaking
people, but we can change the one in unit tests.
2020-01-11 00:23:07 -05:00
Jack O'Connor d7d71b2c5f move 0-length checks to the top-level C API functions 2020-01-10 10:49:33 -05:00
Guido Vranken 253e830c26 C impl: Prevent memcpy undefined behavior 2020-01-10 10:41:35 -05:00
Jack O'Connor 8d3f33802d correct the comments around SIMD rotations 2020-01-10 10:29:48 -05:00
Jack O'Connor 9096249e09 enable CI on pull requests
As per instructions at:
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
2020-01-10 10:22:12 -05:00
Jack O'Connor 1d17689133 same license field fix in b3sum/Cargo.toml 2020-01-10 10:00:17 -05:00
Brendan Molloy a7e11c7cf7 Update license field in Cargo.toml
Fixes the issue of crates.io not recognising the license, and using the `OR` terminology to describe the dual licensing option.
2020-01-10 09:57:25 -05:00
Leonard Buskin 0397d42740 Fix misspelled words_from_little_endian_bytes 2020-01-10 09:54:35 -05:00
Jack O'Connor bef2034c0b fix cross_test.sh
This is a hacky test script, and it broke when I added a feature flag,
while our CI was past quota :(
2020-01-09 16:49:37 -05:00
Jack O'Connor a794a9124f link directly to the blake3.pdf file in the spec repo 2020-01-09 15:40:22 -05:00
Jack O'Connor 7f43ed9f47 use the Apache-2.0 license in Cargo.toml
This project is also CC0, but crates.io doesn't seem to understand that
one.
2020-01-09 11:48:09 -05:00
Jack O'Connor 3cf242b651 fill out Cargo.toml files for publication 2020-01-09 10:50:55 -05:00
Jack O'Connor af9b44c881 replace the C code README with a "not yet ready" remark 2020-01-09 09:48:52 -05:00
Jack O'Connor 88dcee7005 remove the C code's separate LICENSE file
The LICENSE file at the top level of this repo is identical.
2020-01-09 09:48:52 -05:00
Jack O'Connor a0d7b4f3f8 merge the C code's ci.yml into the top level one
CI is not currently working due to quota issues, so I'll need to check
that this is actually working later.
2020-01-09 09:48:52 -05:00
Jack O'Connor 10c13c8d1c remove the C code's duplicated copy of the test vectors 2020-01-09 09:48:52 -05:00
Jack O'Connor 8be609ba9d delete the previous vendored C files and repoint the Rust code 2020-01-09 09:48:52 -05:00
Jack O'Connor a7579d30ad merge BLAKE3-c into this repo
This is commit 4476d9da0e370993823e7ad17592b84e905afd76 of
https://github.com/veorq/BLAKE3-c.
2020-01-09 09:48:52 -05:00
Jack O'Connor 56ced5b422 switch the reference impl to use the single permutation 2020-01-09 09:21:07 -05:00
Jack O'Connor 442775e3ce test_msg_schedule_permutation 2020-01-09 09:21:07 -05:00
Jack O'Connor 6165c9211c tweaks again 2020-01-08 18:41:53 -05:00
Jack O'Connor 7abaa1b3b2 more wording tweaks in README.md 2020-01-08 18:27:04 -05:00
JP Aumasson a8e2641efa merge 2020-01-08 17:01:59 -05:00
Jack O'Connor c3490e9bd7 baokeshed -> bao 2020-01-08 14:27:19 -05:00
Jack O'Connor 6d5bd23b1e BLAKE3.svg and B3.svg 2020-01-08 14:17:24 -05:00
JP Aumasson ed81da9aaa code comment 2020-01-08 13:28:02 -05:00
JP Aumasson 6e2889cd8c readme fixes 2020-01-08 11:16:24 -05:00
JP Aumasson 3701e67d71 contributing fix 2020-01-08 09:41:12 -05:00
JP Aumasson b661fbdad5 emphasis 2020-01-08 09:31:16 -05:00
JP Aumasson 8436373d67 tweaks 2020-01-08 09:29:24 -05:00
JP Aumasson 31b4b4cd9f tweaks 2020-01-08 09:29:04 -05:00
Jack O'Connor bb95913d49 tweak the intellectual property wording 2020-01-07 18:04:02 -05:00
Jack O'Connor 60092cd6bc replace `sha256sum` with `openssl sha256`, for macOS compatibility 2020-01-07 17:57:50 -05:00
Jack O'Connor e04b8b1fed clarify that b3sum --keyed takes raw key bytes 2020-01-07 17:44:50 -05:00
Jack O'Connor 2441f2938f fill out the Usage section of the README 2020-01-07 17:39:26 -05:00
Jack O'Connor b0d775d589 simplify the docs example 2020-01-07 15:41:35 -05:00
Jack O'Connor 05f9cbdab1 username typo 2020-01-07 15:21:00 -05:00
Jack O'Connor e02be10195 replace the README graph with a bar chart 2020-01-07 15:20:56 -05:00
JP Aumasson 1a9d8013be s/zcash/ecc 2020-01-06 18:25:53 -05:00
JP Aumasson 77eba91f75 pwd hash 2020-01-05 23:28:20 -05:00
JP Aumasson 7628a08948 . 2020-01-05 23:16:20 -05:00
JP Aumasson 311218508d readme tweaks, sponsors 2020-01-05 22:56:26 -05:00
Jack O'Connor 295224d48e README wording tweaks 2020-01-05 21:06:49 -05:00
Jack O'Connor f79c648cec update the throughput graph 2020-01-05 20:42:20 -05:00
Jack O'Connor bee430b335 make the --length argument require a value 2020-01-05 19:21:47 -05:00
JP Aumasson 952ea944d9 copyrights 2020-01-05 15:49:57 -05:00
Jack O'Connor 80260dc763 switch to the new permutations 2020-01-05 14:57:17 -05:00