Skip to content

Commit bd9d5a4

Browse files
committed
Rename P384_GENERATOR to GENERATOR.
Make the P-384 code consistent with its upcoming P-256 analog.
1 parent 9ee3165 commit bd9d5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ec/suite_b/ops/p384.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ fn p384_elem_inv_squared(a: &Elem<R>) -> Elem<R> {
132132

133133
fn p384_point_mul_base_impl(a: &Scalar) -> Point {
134134
// XXX: Not efficient. TODO: Precompute multiples of the generator.
135-
static P384_GENERATOR: (Elem<R>, Elem<R>) = (
135+
static GENERATOR: (Elem<R>, Elem<R>) = (
136136
Elem {
137137
limbs: p384_limbs![
138138
0x49c0b528, 0x3dd07566, 0xa0d6ce38, 0x20e378e2, 0x541b4d6e, 0x879c3afc, 0x59a30eff,
@@ -151,7 +151,7 @@ fn p384_point_mul_base_impl(a: &Scalar) -> Point {
151151
},
152152
);
153153

154-
PRIVATE_KEY_OPS.point_mul(a, &P384_GENERATOR)
154+
PRIVATE_KEY_OPS.point_mul(a, &GENERATOR)
155155
}
156156

157157
pub static PUBLIC_KEY_OPS: PublicKeyOps = PublicKeyOps {

0 commit comments

Comments
 (0)