@@ -26,7 +26,7 @@ use zeroize::{Zeroize, ZeroizeOnDrop};
2626use crate :: {
2727 public_key:: PublicKey ,
2828 sec1:: { FromEncodedPoint , ToEncodedPoint } ,
29- AffinePoint , ProjectiveArithmetic ,
29+ AffinePoint , CurveArithmetic ,
3030} ;
3131
3232/// Key Type (`kty`) for elliptic curve keys.
@@ -110,7 +110,7 @@ impl JwkEcKey {
110110 #[ cfg( feature = "arithmetic" ) ]
111111 pub fn to_public_key < C > ( & self ) -> Result < PublicKey < C > >
112112 where
113- C : Curve + JwkParameters + ProjectiveArithmetic ,
113+ C : CurveArithmetic + JwkParameters ,
114114 AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
115115 FieldSize < C > : ModulusSize ,
116116 {
@@ -213,7 +213,7 @@ where
213213#[ cfg( feature = "arithmetic" ) ]
214214impl < C > From < SecretKey < C > > for JwkEcKey
215215where
216- C : Curve + JwkParameters + ProjectiveArithmetic ,
216+ C : CurveArithmetic + JwkParameters ,
217217 AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
218218 FieldSize < C > : ModulusSize ,
219219{
@@ -225,7 +225,7 @@ where
225225#[ cfg( feature = "arithmetic" ) ]
226226impl < C > From < & SecretKey < C > > for JwkEcKey
227227where
228- C : Curve + JwkParameters + ProjectiveArithmetic ,
228+ C : CurveArithmetic + JwkParameters ,
229229 AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
230230 FieldSize < C > : ModulusSize ,
231231{
@@ -241,7 +241,7 @@ where
241241#[ cfg( feature = "arithmetic" ) ]
242242impl < C > TryFrom < JwkEcKey > for PublicKey < C >
243243where
244- C : Curve + JwkParameters + ProjectiveArithmetic ,
244+ C : CurveArithmetic + JwkParameters ,
245245 AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
246246 FieldSize < C > : ModulusSize ,
247247{
@@ -255,7 +255,7 @@ where
255255#[ cfg( feature = "arithmetic" ) ]
256256impl < C > TryFrom < & JwkEcKey > for PublicKey < C >
257257where
258- C : Curve + JwkParameters + ProjectiveArithmetic ,
258+ C : CurveArithmetic + JwkParameters ,
259259 AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
260260 FieldSize < C > : ModulusSize ,
261261{
@@ -269,7 +269,7 @@ where
269269#[ cfg( feature = "arithmetic" ) ]
270270impl < C > From < PublicKey < C > > for JwkEcKey
271271where
272- C : Curve + JwkParameters + ProjectiveArithmetic ,
272+ C : CurveArithmetic + JwkParameters ,
273273 AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
274274 FieldSize < C > : ModulusSize ,
275275{
@@ -281,7 +281,7 @@ where
281281#[ cfg( feature = "arithmetic" ) ]
282282impl < C > From < & PublicKey < C > > for JwkEcKey
283283where
284- C : Curve + JwkParameters + ProjectiveArithmetic ,
284+ C : CurveArithmetic + JwkParameters ,
285285 AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
286286 FieldSize < C > : ModulusSize ,
287287{
0 commit comments