Skip to content

Commit

Permalink
fix build error on CentOS7
Browse files Browse the repository at this point in the history
  • Loading branch information
infinet committed Nov 5, 2022
1 parent 304cac8 commit 76f87dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/chacha8.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void chacha8_hash(const u64 nonce, const u8 key[CHACHA20_KEY_SIZE], u8 *out)

chacha20_init(&ctx, key, nonce);

for (i = 0; i < ARRAY_SIZE(x); ++i)
for (i = 0; i < CHACHA20_BLOCK_WORDS; ++i)
x[i] = ctx.state[i];

EIGHT_ROUNDS(x);
Expand Down

0 comments on commit 76f87dc

Please sign in to comment.