Skip to content

Commit 12f038b

Browse files
reaperhulkalex
andauthored
fixes #10237 -- correct EC sign parameter name (#10239) (#10240)
Co-authored-by: Alex Gaynor <[email protected]>
1 parent 4e64baf commit 12f038b

File tree

1 file changed

+3
-3
lines changed
  • src/rust/src/backend

1 file changed

+3
-3
lines changed

src/rust/src/backend/ec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ impl ECPrivateKey {
269269
&self,
270270
py: pyo3::Python<'p>,
271271
data: &[u8],
272-
algorithm: &pyo3::PyAny,
272+
signature_algorithm: &pyo3::PyAny,
273273
) -> CryptographyResult<&'p pyo3::types::PyBytes> {
274-
if !algorithm.is_instance(types::ECDSA.get(py)?)? {
274+
if !signature_algorithm.is_instance(types::ECDSA.get(py)?)? {
275275
return Err(CryptographyError::from(
276276
exceptions::UnsupportedAlgorithm::new_err((
277277
"Unsupported elliptic curve signature algorithm",
@@ -283,7 +283,7 @@ impl ECPrivateKey {
283283
let (data, _) = utils::calculate_digest_and_algorithm(
284284
py,
285285
data,
286-
algorithm.getattr(pyo3::intern!(py, "algorithm"))?,
286+
signature_algorithm.getattr(pyo3::intern!(py, "algorithm"))?,
287287
)?;
288288

289289
let mut signer = openssl::pkey_ctx::PkeyCtx::new(&self.pkey)?;

0 commit comments

Comments
 (0)