We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b34d18b commit aeb0f42Copy full SHA for aeb0f42
src/SignatureAlgorithm/RSA/RSA.php
@@ -17,12 +17,20 @@
17
use Jose\Component\Core\JWK;
18
use Jose\Component\Core\Util\RSAKey;
19
use Jose\Component\Signature\Algorithm\Util\RSA as JoseRSA;
20
+use RuntimeException;
21
22
/**
23
* @deprecated Please use either RSAPSS or RSAPKCS1 depending on the padding mode
24
*/
25
abstract class RSA implements SignatureAlgorithm
26
{
27
+ public function __construct()
28
+ {
29
+ if (!\extension_loaded('gmp')) {
30
+ throw new RuntimeException(static::class.' requires gmp extension');
31
+ }
32
33
+
34
public function allowedKeyTypes(): array
35
36
return ['RSA'];
0 commit comments