diff --git a/jose-jwk/src/crypto/p521.rs b/jose-jwk/src/crypto/p521.rs index 0049d51..4a3df86 100644 --- a/jose-jwk/src/crypto/p521.rs +++ b/jose-jwk/src/crypto/p521.rs @@ -18,7 +18,7 @@ impl KeyInfo for PublicKey { } fn is_supported(&self, algo: &Algorithm) -> bool { - matches!(algo, Signing(Es384)) + matches!(algo, Signing(Es512)) } } @@ -28,7 +28,7 @@ impl KeyInfo for SecretKey { } fn is_supported(&self, algo: &Algorithm) -> bool { - matches!(algo, Signing(Es384)) + matches!(algo, Signing(Es512)) } }