Skip to content

Commit 0aa5c88

Browse files
committed
restore padding fix for 32bit
1 parent 7b79e3a commit 0aa5c88

File tree

1 file changed

+2
-0
lines changed
  • ext/hash/blake3/upstream_blake3/c

1 file changed

+2
-0
lines changed

ext/hash/blake3/upstream_blake3/c/blake3.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ typedef struct {
4444
uint64_t chunk_counter;
4545
uint8_t buf[BLAKE3_BLOCK_LEN];
4646
uint8_t buf_len;
47+
uint8_t padding_1[5];
4748
uint8_t blocks_compressed;
4849
uint8_t flags;
4950
} blake3_chunk_state;
@@ -58,6 +59,7 @@ typedef struct {
5859
// don't know whether more input is coming. This is different from how the
5960
// reference implementation does things.
6061
uint8_t cv_stack[(BLAKE3_MAX_DEPTH + 1) * BLAKE3_OUT_LEN];
62+
uint8_t padding_2[7];
6163
} blake3_hasher;
6264

6365
BLAKE3_API const char *blake3_version(void);

0 commit comments

Comments
 (0)