mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-09 11:46:08 +02:00
Compare commits
3 Commits
c8e9772a18
...
80f56f8832
Author | SHA1 | Date | |
---|---|---|---|
Ian Ker-Seymer | 80f56f8832 | ||
Jack O'Connor | 4ec3be8bfa | ||
Ian Ker-Seymer | cc8cf4c5fd |
14
README.md
14
README.md
|
@ -176,12 +176,14 @@ See [`c/README.md`](c/README.md).
|
|||
|
||||
We post links to third-party bindings and implementations on the
|
||||
[@BLAKE3team Twitter account](https://twitter.com/BLAKE3team) whenever
|
||||
we hear about them. Some highlights include [an optimized Go
|
||||
implementation](https://github.com/zeebo/blake3), [Wasm bindings for
|
||||
Node.js and browsers](https://github.com/connor4312/blake3), [binary
|
||||
wheels for Python](https://github.com/oconnor663/blake3-py), [.NET
|
||||
bindings](https://github.com/xoofx/Blake3.NET), and [JNI
|
||||
bindings](https://github.com/sken77/BLAKE3jni).
|
||||
we hear about them. Some highlights include:
|
||||
|
||||
- [An optimized Go implementation](https://github.com/zeebo/blake3)
|
||||
- [Wasm bindings for Node.js and browsers](https://github.com/connor4312/blake3)
|
||||
- [Binary wheels for Python](https://github.com/oconnor663/blake3-py)
|
||||
- [.NET bindings](https://github.com/xoofx/Blake3.NET)
|
||||
- [JNI bindings](https://github.com/sken77/BLAKE3jni)
|
||||
- [Ruby bindings](https://github.com/Shopify/blake3-rb)
|
||||
|
||||
## Contributing
|
||||
|
||||
|
|
|
@ -78,23 +78,14 @@ fn compress(
|
|||
block_len: u32,
|
||||
flags: u32,
|
||||
) -> [u32; 16] {
|
||||
let counter_low = counter as u32;
|
||||
let counter_high = (counter >> 32) as u32;
|
||||
#[rustfmt::skip]
|
||||
let mut state = [
|
||||
chaining_value[0],
|
||||
chaining_value[1],
|
||||
chaining_value[2],
|
||||
chaining_value[3],
|
||||
chaining_value[4],
|
||||
chaining_value[5],
|
||||
chaining_value[6],
|
||||
chaining_value[7],
|
||||
IV[0],
|
||||
IV[1],
|
||||
IV[2],
|
||||
IV[3],
|
||||
counter as u32,
|
||||
(counter >> 32) as u32,
|
||||
block_len,
|
||||
flags,
|
||||
chaining_value[0], chaining_value[1], chaining_value[2], chaining_value[3],
|
||||
chaining_value[4], chaining_value[5], chaining_value[6], chaining_value[7],
|
||||
IV[0], IV[1], IV[2], IV[3],
|
||||
counter_low, counter_high, block_len, flags,
|
||||
];
|
||||
let mut block = *block_words;
|
||||
|
||||
|
|
Loading…
Reference in New Issue