ソースを参照

Set output coordinates' |neg| field in |ecp_nistz256_get_affine|.

The result would not be correct if, on input, |x->neg != 0| or
|y->neg != 0|.

Change-Id: I645566a78c2e18e42492fbfca1df17baa05240f7
Reviewed-on: https://boringssl-review.googlesource.com/7587
Reviewed-by: David Benjamin <davidben@google.com>
kris/onging/CECPQ3_patch15
Brian Smith 8年前
committed by David Benjamin
コミット
d860b7b1cd
1個のファイルの変更2行の追加0行の削除
  1. +2
    -0
      crypto/ec/p256-x86_64.c

+ 2
- 0
crypto/ec/p256-x86_64.c ファイルの表示

@@ -528,6 +528,7 @@ static int ecp_nistz256_get_affine(const EC_GROUP *group, const EC_POINT *point,
return 0;
}
x->top = P256_LIMBS;
x->neg = 0;
ecp_nistz256_from_mont(x->d, x_aff);
bn_correct_top(x);
}
@@ -540,6 +541,7 @@ static int ecp_nistz256_get_affine(const EC_GROUP *group, const EC_POINT *point,
return 0;
}
y->top = P256_LIMBS;
y->neg = 0;
ecp_nistz256_from_mont(y->d, y_aff);
bn_correct_top(y);
}


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