commit | 945cf9a131d52069dfec6488f901cef475732584 | [log] [tgz] |
---|---|---|
author | Matt Braithwaite <mab@google.com> | Tue Apr 26 16:03:47 2016 -0700 |
committer | Adam Langley <agl@google.com> | Tue Apr 26 23:07:16 2016 +0000 |
tree | 456ef1336be09c1fc3276dc281c33565caf0334c | |
parent | 045a0ffe358b81609e5b93e1f02e948b581304a3 [diff] |
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>
diff --git a/crypto/newhope/poly.c b/crypto/newhope/poly.c index ce6451e..a9839fa 100644 --- a/crypto/newhope/poly.c +++ b/crypto/newhope/poly.c
@@ -103,8 +103,7 @@ /* 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;