1
0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-09-21 08:11:36 +02:00
Commit Graph

267 Commits

Author SHA1 Message Date
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
Jack O'Connor
34f146bbec edits to README.md 2020-01-05 14:19:06 -05:00
Jack O'Connor
9fe42d0702 warn not to use derive_key with passwords 2020-01-05 13:29:50 -05:00
Jack O'Connor
72ba63ca86 turn on AVX-512 in the test vectors 2020-01-04 21:49:38 -05:00
Jack O'Connor
5b4f79fc7f comment punctuation nit 2020-01-04 10:30:59 -05:00
JP Aumasson
86aaa13064 merge fix 2020-01-04 04:33:55 -05:00
JP Aumasson
02be834292 readme tweaks 2020-01-04 04:30:43 -05:00
Jack O'Connor
dc324a189e add the guts module to share code with Bao 2019-12-29 11:55:19 -06:00
Jack O'Connor
2fac7447e0 make derive_key take a key of any length
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-28 17:56:29 -06:00
Jack O'Connor
ba28064963 switch back to counting trailing 0 bits
These things are totally equivalent, and I keep going back and forth,
but now I think this is slightly clearer.
2019-12-24 16:51:43 -06:00
Jack O'Connor
c9ffbdd365 use self.flags instead of self.chunk_state.flags in the reference impl
This is clearer, and because of padding requirements it doesn't change
the size of the Hasher struct. (We have a test for this.)
2019-12-24 13:30:04 -06:00
Jack O'Connor
8aae07f91a switch from counting trailing 0 bits to counting trailing 1 bits 2019-12-24 13:12:18 -06:00
Jack O'Connor
6c1155a41d get rid of unnecessary variables in push_chunk_chaining_value 2019-12-23 15:47:40 -06:00
Jack O'Connor
3016ddcb3a add a parent_cv helper function to the reference impl
Also use fewer array references (the compiler doesn't care) be more
explicit with a `new_cv` mutable variable. This clarifies
push_chunk_chaining_value just a bit. Since that's the trickiest
function in the entire thing, it's good to clarify it. (It also gets
excerpted directly into the spec.)
2019-12-23 15:14:13 -06:00
Jack O'Connor
021c7b66be switch to simplified rotations
This is a performance improvement on modern x86 chips (Skylake and
later), and the LLVM optimizer can convert these to AVX-512 rotations
when those are enabled.
2019-12-23 13:41:06 -06:00
Jack O'Connor
e800e0659f rework push_chunk_chaining_value in terms of trailing 0's 2019-12-22 16:31:47 -05:00
Jack O'Connor
5fb359023c add a readme link to b3sum 2019-12-15 19:22:01 -05:00
Jack O'Connor
5f29918b7e add a LICENSE file including CC0 and Apache 2.0 2019-12-15 17:44:01 -05:00
Jack O'Connor
ab88db1aed docs tweaks 2019-12-14 10:13:10 -05:00
Jack O'Connor
e6e4e6d687 a few more comments in reference_impl.rs 2019-12-14 09:55:50 -05:00
Jack O'Connor
7f20c473f2 show the default value for b3sum --length 2019-12-13 16:23:03 -05:00
Jack O'Connor
ddd4f4a202 make the b3sum --help text wording more consistent 2019-12-13 16:17:57 -05:00
Jack O'Connor
b1b507d43a make b3sum --keyed and --derive-key read the key from stdin
Putting secret keys on the command line is bad practice, because command
line args are usually globally visible within the OS. Even if these
flags are mostly intended for testing and experimentation, we might as
well do the right thing. Plus this saves people the trouble of hex
encoding their keys.
2019-12-13 16:10:55 -05:00
Jack O'Connor
1a6e863513 fix another warning in b3sum --no-default-features 2019-12-13 13:27:01 -05:00
Jack O'Connor
f54c292a53 silence another warning in the --no-default-features tests 2019-12-13 13:19:44 -05:00
Jack O'Connor
d963fe18f3 test release mode in CI
As part of this, get rid of the BLAKE3_FUZZ_ITERATIONS variable. I
wasn't using it anywhere, and it was leading to some compiler warnings
in --no-default-features mode.
2019-12-13 13:15:48 -05:00
Jack O'Connor
0c245f21bf fix the doc tests build 2019-12-13 13:12:06 -05:00
Jack O'Connor
aa0d282ee5 add to b3sum/README.md 2019-12-13 13:10:05 -05:00
Jack O'Connor
811b5109c5 add --no-names to b3sum
Printing all names by default is more consistent with Coreutils.
2019-12-13 13:08:50 -05:00
Jack O'Connor
04f5ccd648 expand the docs 2019-12-13 12:53:09 -05:00
Jack O'Connor
1384edd67c rename 1_chunk benchmarks to 1_kib 2019-12-13 10:06:46 -05:00