Skip to content

Commit 1867e4f

Browse files
committed
Minor correction
1 parent f2071a1 commit 1867e4f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/SignatureAlgorithm/RSA/RSA.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ public function verify(JWK $key, string $input, string $signature): bool
3232
{
3333
$this->checkKey($key);
3434
$pub = RSAKey::createFromJWK($key->toPublic());
35-
if (JoseRSA::SIGNATURE_PKCS1 === $this->getSignatureMethod()) {
36-
return 1 === openssl_verify($input, $signature, $pub->toPEM(), $this->getAlgorithm());
37-
}
3835

3936
return JoseRSA::verify($pub, $input, $signature, $this->getAlgorithm(), $this->getSignatureMethod());
4037
}

0 commit comments

Comments
 (0)