Skip to content

Commit

Permalink
Remove pointless none check (#10430)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Feb 19, 2024
1 parent 732eea3 commit 2ac571d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/src/x509/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub(crate) fn compute_signature_algorithm<'p>(

// If this is RSA-PSS we need to compute the signature algorithm from the
// parameters provided in rsa_padding.
if !rsa_padding.is_none() && rsa_padding.is_instance(types::PSS.get(py)?)? {
if rsa_padding.is_instance(types::PSS.get(py)?)? {
let hash_alg_params = identify_alg_params_for_hash_type(hash_type)?;
let hash_algorithm_id = common::AlgorithmIdentifier {
oid: asn1::DefinedByMarker::marker(),
Expand Down

0 comments on commit 2ac571d

Please sign in to comment.