Skip to content

Commit

Permalink
Fix Rust 1.41 build
Browse files Browse the repository at this point in the history
  • Loading branch information
ramosbugs committed Nov 26, 2020
1 parent 98ca041 commit a4504a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl JsonWebKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse>
crypto::verify_hmac(self, hmac::HMAC_SHA512, message, signature)
}
CoreJwsSigningAlgorithm::EcdsaP256Sha256 => {
if matches!(self.crv, Some(CoreJsonCurveType::P256)) {
if let Some(CoreJsonCurveType::P256) = self.crv {
crypto::verify_ec_signature(
self,
&ring_signature::ECDSA_P256_SHA256_FIXED,
Expand All @@ -237,7 +237,7 @@ impl JsonWebKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse>
}
}
CoreJwsSigningAlgorithm::EcdsaP384Sha384 => {
if matches!(self.crv, Some(CoreJsonCurveType::P384)) {
if let Some(CoreJsonCurveType::P384) = self.crv {
crypto::verify_ec_signature(
self,
&ring_signature::ECDSA_P384_SHA384_FIXED,
Expand Down

0 comments on commit a4504a1

Please sign in to comment.