Browse Source

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>
kris/onging/CECPQ3_patch15
Matt Braithwaite 8 years ago
committed by Adam Langley
parent
commit
945cf9a131
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      crypto/newhope/poly.c

+ 1
- 2
crypto/newhope/poly.c 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;


Loading…
Cancel
Save