瀏覽代碼

Don't use a C99 for loop.

Because it's 2015 and we can't depend on C99 support yet.

Change-Id: Ie33fddc2a27024d4d3d50dea725062b59670a060
kris/onging/CECPQ3_patch15
Adam Langley 9 年之前
父節點
當前提交
6a2de3c1d4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      crypto/cipher/e_des.c

+ 2
- 1
crypto/cipher/e_des.c 查看文件

@@ -104,7 +104,8 @@ static int des_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in,
in_len -= ctx->cipher->block_size;

EVP_DES_KEY *dat = (EVP_DES_KEY *) ctx->cipher_data;
for (size_t i = 0; i <= in_len; i += ctx->cipher->block_size) {
size_t i;
for (i = 0; i <= in_len; i += ctx->cipher->block_size) {
DES_ecb_encrypt((DES_cblock *) (in + i), (DES_cblock *) (out + i),
&dat->ks.ks, ctx->encrypt);
}


Loading…
取消
儲存