File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -269,9 +269,9 @@ impl ECPrivateKey {
269
269
& self ,
270
270
py : pyo3:: Python < ' p > ,
271
271
data : & [ u8 ] ,
272
- algorithm : & pyo3:: PyAny ,
272
+ signature_algorithm : & pyo3:: PyAny ,
273
273
) -> CryptographyResult < & ' p pyo3:: types:: PyBytes > {
274
- if !algorithm . is_instance ( types:: ECDSA . get ( py) ?) ? {
274
+ if !signature_algorithm . is_instance ( types:: ECDSA . get ( py) ?) ? {
275
275
return Err ( CryptographyError :: from (
276
276
exceptions:: UnsupportedAlgorithm :: new_err ( (
277
277
"Unsupported elliptic curve signature algorithm" ,
@@ -283,7 +283,7 @@ impl ECPrivateKey {
283
283
let ( data, _) = utils:: calculate_digest_and_algorithm (
284
284
py,
285
285
data,
286
- algorithm . getattr ( pyo3:: intern!( py, "algorithm" ) ) ?,
286
+ signature_algorithm . getattr ( pyo3:: intern!( py, "algorithm" ) ) ?,
287
287
) ?;
288
288
289
289
let mut signer = openssl:: pkey_ctx:: PkeyCtx :: new ( & self . pkey ) ?;
You can’t perform that action at this time.
0 commit comments