1
1
//! ECDSA signing: producing signatures using a [`SigningKey`].
2
2
3
3
use crate :: {
4
- DigestPrimitive , EcdsaCurve , Error , Result , Signature , SignatureSize , SignatureWithOid ,
4
+ DigestAlgorithm , EcdsaCurve , Error , Result , Signature , SignatureSize , SignatureWithOid ,
5
5
ecdsa_oid_for_digest,
6
6
hazmat:: { bits2field, sign_prehashed_rfc6979} ,
7
7
} ;
@@ -140,7 +140,7 @@ where
140
140
/// [RFC6979 § 3.2]: https://tools.ietf.org/html/rfc6979#section-3
141
141
impl < C , D > DigestSigner < D , Signature < C > > for SigningKey < C >
142
142
where
143
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
143
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
144
144
D : Digest + FixedOutput ,
145
145
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
146
146
SignatureSize < C > : ArraySize ,
@@ -156,7 +156,7 @@ where
156
156
/// [RFC6979 § 3.2]: https://tools.ietf.org/html/rfc6979#section-3
157
157
impl < C > PrehashSigner < Signature < C > > for SigningKey < C >
158
158
where
159
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
159
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
160
160
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
161
161
SignatureSize < C > : ArraySize ,
162
162
{
@@ -168,7 +168,7 @@ where
168
168
169
169
impl < C , D > RandomizedDigestSigner < D , Signature < C > > for SigningKey < C >
170
170
where
171
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
171
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
172
172
D : Digest + FixedOutput ,
173
173
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
174
174
SignatureSize < C > : ArraySize ,
@@ -184,7 +184,7 @@ where
184
184
185
185
impl < C > RandomizedPrehashSigner < Signature < C > > for SigningKey < C >
186
186
where
187
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
187
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
188
188
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
189
189
SignatureSize < C > : ArraySize ,
190
190
{
@@ -202,7 +202,7 @@ where
202
202
203
203
impl < C , D > DigestSigner < D , SignatureWithOid < C > > for SigningKey < C >
204
204
where
205
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
205
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
206
206
D : AssociatedOid + Digest + FixedOutput ,
207
207
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
208
208
SignatureSize < C > : ArraySize ,
@@ -216,7 +216,7 @@ where
216
216
217
217
impl < C > Signer < SignatureWithOid < C > > for SigningKey < C >
218
218
where
219
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
219
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
220
220
C :: Digest : AssociatedOid ,
221
221
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
222
222
SignatureSize < C > : ArraySize ,
@@ -229,7 +229,7 @@ where
229
229
#[ cfg( feature = "der" ) ]
230
230
impl < C > PrehashSigner < der:: Signature < C > > for SigningKey < C >
231
231
where
232
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
232
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
233
233
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
234
234
SignatureSize < C > : ArraySize ,
235
235
der:: MaxSize < C > : ArraySize ,
@@ -243,7 +243,7 @@ where
243
243
#[ cfg( feature = "der" ) ]
244
244
impl < C > RandomizedPrehashSigner < der:: Signature < C > > for SigningKey < C >
245
245
where
246
- C : EcdsaCurve + CurveArithmetic + DigestPrimitive ,
246
+ C : EcdsaCurve + CurveArithmetic + DigestAlgorithm ,
247
247
Scalar < C > : Invert < Output = CtOption < Scalar < C > > > ,
248
248
SignatureSize < C > : ArraySize ,
249
249
der:: MaxSize < C > : ArraySize ,
0 commit comments