forked from wolfSSL/wolfssl
Fix MSVC compile issue in chacha.c.
Use XMEMSET instead of initializing with {}.
This commit is contained in:
@ -442,7 +442,8 @@ int wc_Chacha_Process(ChaCha* ctx, byte* output, const byte* input,
|
||||
|
||||
void wc_Chacha_purge_current_block(ChaCha* ctx) {
|
||||
if (ctx->left > 0) {
|
||||
byte scratch[CHACHA_CHUNK_BYTES] = {0};
|
||||
byte scratch[CHACHA_CHUNK_BYTES];
|
||||
XMEMSET(scratch, 0, sizeof(scratch));
|
||||
(void)wc_Chacha_Process(ctx, scratch, scratch, CHACHA_CHUNK_BYTES - ctx->left);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user