newhope: MSVC can't size array using static size_t

Change-Id: I5060b1a3e800db21d2205f11951b4ad8a5986133
Reviewed-on: https://boringssl-review.googlesource.com/7770
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Matt Braithwaite 2016-04-26 16:03:47 -07:00 committed by Adam Langley
parent 045a0ffe35
commit 945cf9a131

View File

@ -103,8 +103,7 @@ void newhope_poly_uniform(NEWHOPE_POLY* a, const uint8_t* seed) {
/* Encrypt a block of zeros just to get the random bytes. With luck, 2688
* bytes is enough. */
static size_t kBlocks = 168;
uint8_t buf[AES_BLOCK_SIZE * kBlocks];
uint8_t buf[AES_BLOCK_SIZE * 168];
memset(buf, 0, sizeof(buf));
unsigned int block_num = 0;