@@ -12,14 +12,14 @@ use der::{
12
12
} ;
13
13
use ecdsa:: {
14
14
elliptic_curve:: {
15
- generic_array :: ArrayLength ,
15
+ array :: ArraySize ,
16
16
ops:: Invert ,
17
17
point:: PointCompression ,
18
18
sec1:: { FromEncodedPoint , ModulusSize , ToEncodedPoint } ,
19
19
subtle:: CtOption ,
20
20
AffinePoint , CurveArithmetic , FieldBytesSize , PublicKey , Scalar , SecretKey ,
21
21
} ,
22
- hazmat:: { DigestPrimitive , SignPrimitive } ,
22
+ hazmat:: DigestPrimitive ,
23
23
PrimeCurve , Signature , SignatureSize , VerifyingKey ,
24
24
} ;
25
25
use signature:: { digest:: Digest , DigestSigner } ;
76
76
impl < C > CryptokiImport for SecretKey < C >
77
77
where
78
78
C : PrimeCurve + CurveArithmetic ,
79
- Scalar < C > : Invert < Output = CtOption < Scalar < C > > > + SignPrimitive < C > ,
80
- SignatureSize < C > : ArrayLength < u8 > ,
79
+ Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
80
+ SignatureSize < C > : ArraySize ,
81
81
82
82
C : AssociatedOid ,
83
83
{
@@ -232,7 +232,7 @@ impl<C: SignAlgorithm, S: SessionLike> signature::Keypair for Signer<C, S> {
232
232
233
233
impl < C : SignAlgorithm , S : SessionLike > DigestSigner < C :: Digest , Signature < C > > for Signer < C , S >
234
234
where
235
- <<C as ecdsa:: elliptic_curve:: Curve >:: FieldBytesSize as Add >:: Output : ArrayLength < u8 > ,
235
+ <<C as ecdsa:: elliptic_curve:: Curve >:: FieldBytesSize as Add >:: Output : ArraySize ,
236
236
{
237
237
fn try_sign_digest ( & self , digest : C :: Digest ) -> Result < Signature < C > , signature:: Error > {
238
238
let msg = digest. finalize ( ) ;
@@ -265,8 +265,8 @@ where
265
265
impl < C : SignAlgorithm , S : SessionLike > DigestSigner < C :: Digest , ecdsa:: der:: Signature < C > >
266
266
for Signer < C , S >
267
267
where
268
- ecdsa:: der:: MaxSize < C > : ArrayLength < u8 > ,
269
- <FieldBytesSize < C > as Add >:: Output : Add < ecdsa:: der:: MaxOverhead > + ArrayLength < u8 > ,
268
+ ecdsa:: der:: MaxSize < C > : ArraySize ,
269
+ <FieldBytesSize < C > as Add >:: Output : Add < ecdsa:: der:: MaxOverhead > + ArraySize ,
270
270
Self : DigestSigner < C :: Digest , Signature < C > > ,
271
271
{
272
272
fn try_sign_digest (
0 commit comments