| ... | ... | @@ -214,7 +214,7 @@ const ChunkState = struct { |
| 214 | 214 | // input is coming, so this compression is not CHUNK_END. |
| 215 | 215 | if (self.block_len == BLOCK_LEN) { |
| 216 | 216 | var block_words: [16]u32 = undefined; |
| 217 | | words_from_little_endian_bytes(&block_words, &self.block); |
| 217 | words_from_little_endian_bytes(block_words[0..], self.block[0..]); |
| 218 | 218 | self.chaining_value = first_8_words(compress( |
| 219 | 219 | self.chaining_value, |
| 220 | 220 | block_words, |
| ... | ... | @@ -234,7 +234,7 @@ const ChunkState = struct { |
| 234 | 234 | |
| 235 | 235 | fn output(self: *const ChunkState) Output { |
| 236 | 236 | var block_words: [16]u32 = undefined; |
| 237 | | words_from_little_endian_bytes(&block_words, &self.block); |
| 237 | words_from_little_endian_bytes(block_words[0..], self.block[0..]); |
| 238 | 238 | return Output{ |
| 239 | 239 | .input_chaining_value = self.chaining_value, |
| 240 | 240 | .block_words = block_words, |
| ... | ... | @@ -299,7 +299,7 @@ pub const Blake3 = struct { |
| 299 | 299 | /// Construct a new `Blake3` for the keyed hash function. |
| 300 | 300 | pub fn init_keyed(key: [KEY_LEN]u8) Blake3 { |
| 301 | 301 | var key_words: [8]u32 = undefined; |
| 302 | | words_from_little_endian_bytes(&key_words, key[0..]); |
| 302 | words_from_little_endian_bytes(key_words[0..], key[0..]); |
| 303 | 303 | return Blake3.init_internal(key_words, KEYED_HASH); |
| 304 | 304 | } |
| 305 | 305 | |
| ... | ... | @@ -311,7 +311,7 @@ pub const Blake3 = struct { |
| 311 | 311 | var context_key: [KEY_LEN]u8 = undefined; |
| 312 | 312 | context_hasher.final(context_key[0..]); |
| 313 | 313 | var context_key_words: [8]u32 = undefined; |
| 314 | | words_from_little_endian_bytes(&context_key_words, &context_key); |
| 314 | words_from_little_endian_bytes(context_key_words[0..], context_key[0..]); |
| 315 | 315 | return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL); |
| 316 | 316 | } |
| 317 | 317 | |