Skip to content

Commit

Permalink
Remove incorrect code and ignore with incompatible OpenSSL backends
Browse files Browse the repository at this point in the history
  • Loading branch information
facutuesca committed Feb 26, 2024
1 parent 0b9fd57 commit 087f948
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/rust/src/backend/ec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,8 @@ impl ECPrivateKey {
}
} else {
let _ = algo;
return Err(CryptographyError::from(
exceptions::UnsupportedAlgorithm::new_err((
"ECDSA with deterministic signature (RFC 6979) is not supported by this version of OpenSSL.",
exceptions::Reasons::UNSUPPORTED_PUBLIC_KEY_ALGORITHM,
)),
));
// `deterministic` always be False if we're not using OpenSSL >= 3.2.0.
// Because of that, we completely ignore its value here.
}
}

Expand Down

0 comments on commit 087f948

Please sign in to comment.