ソースを参照

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年前
committed by Adam Langley
コミット
945cf9a131
1個のファイルの変更1行の追加2行の削除
  1. +1
    -2
      crypto/newhope/poly.c

+ 1
- 2
crypto/newhope/poly.c ファイルの表示

@@ -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;


読み込み中…
キャンセル
保存