File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ typedef struct {
44
44
uint64_t chunk_counter ;
45
45
uint8_t buf [BLAKE3_BLOCK_LEN ];
46
46
uint8_t buf_len ;
47
+ uint8_t padding_1 [5 ];
47
48
uint8_t blocks_compressed ;
48
49
uint8_t flags ;
49
50
} blake3_chunk_state ;
@@ -58,6 +59,7 @@ typedef struct {
58
59
// don't know whether more input is coming. This is different from how the
59
60
// reference implementation does things.
60
61
uint8_t cv_stack [(BLAKE3_MAX_DEPTH + 1 ) * BLAKE3_OUT_LEN ];
62
+ uint8_t padding_2 [7 ];
61
63
} blake3_hasher ;
62
64
63
65
BLAKE3_API const char * blake3_version (void );
Original file line number Diff line number Diff line change 32
32
/* uint64_t chunk_counter; */ "q" \
33
33
/* uint8_t buf[BLAKE3_BLOCK_LEN]; */ "b64" \
34
34
/* uint8_t buf_len; */ "b" \
35
- /* skip 5 bytes of alignment padding in chunk */ "B5" \
35
+ /* skip uint8_t padding_1[5] */ "B5" \
36
36
/* uint8_t blocks_compressed */ "b" \
37
37
/* uint8_t flags; */ "b" \
38
38
/* uint8_t cv_stack_len; */ "b" \
39
39
/* uint8_t cv_stack[(BLAKE3_MAX_DEPTH + 1) * BLAKE3_OUT_LEN]; */ "b1760" \
40
- /* skip 7 trailing alignment bytes */ "B7" \
40
+ /* skip 7 uint8_t padding_2[7] */ "B7" \
41
41
"."
42
42
43
43
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ function not_serializable(string $algo)
44
44
return in_array ($ algo , [
45
45
"xxh3 " ,
46
46
"xxh128 " ,
47
- "blake3 " , // todo: blake3 can be seralized but it's not implemented yet
48
47
], true );
49
48
}
50
49
You can’t perform that action at this time.
0 commit comments