Rename `IntModP`/`IntModN` to `CurveField`/`ScalarField`
[dnssec-prover] / src / crypto / secp256r1.rs
index 41d4851f12ee783eed8197eb4b316ed06d6cf366..88db88364312a840acbc0ab11a51c846c9401e92 100644 (file)
@@ -29,11 +29,11 @@ struct P256();
 
 impl ec::Curve for P256 {
        type Int = U256;
-       type IntModP = U256Mod<P>;
-       type IntModN = U256Mod<N>;
+       type CurveField = U256Mod<P>;
+       type ScalarField = U256Mod<N>;
 
-       type P = P;
-       type N = N;
+       type CurveModulus = P;
+       type ScalarModulus = N;
 
        const A: U256Mod<P> = U256Mod::from_u256_panicking(U256::from_32_be_bytes_panicking(&hex_lit::hex!(
                "ffffffff00000001000000000000000000000000fffffffffffffffffffffffc")));