Skip to content

Commit

Permalink
Minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Jul 18, 2019
1 parent b34d18b commit aeb0f42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SignatureAlgorithm/RSA/RSA.php
Expand Up @@ -17,12 +17,20 @@
use Jose\Component\Core\JWK;
use Jose\Component\Core\Util\RSAKey;
use Jose\Component\Signature\Algorithm\Util\RSA as JoseRSA;
use RuntimeException;

/**
* @deprecated Please use either RSAPSS or RSAPKCS1 depending on the padding mode
*/
abstract class RSA implements SignatureAlgorithm
{
public function __construct()
{
if (!\extension_loaded('gmp')) {
throw new RuntimeException(static::class.' requires gmp extension');
}
}

public function allowedKeyTypes(): array
{
return ['RSA'];
Expand Down

0 comments on commit aeb0f42

Please sign in to comment.