30 lines
531 B
PHP
30 lines
531 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Jose\Component\Encryption\Algorithm\KeyEncryption;
|
|
|
|
use Jose\Component\Encryption\Algorithm\KeyEncryption\Util\RSACrypt;
|
|
use Override;
|
|
|
|
final readonly class RSA15 extends RSA
|
|
{
|
|
#[Override]
|
|
public function name(): string
|
|
{
|
|
return 'RSA1_5';
|
|
}
|
|
|
|
#[Override]
|
|
protected function getEncryptionMode(): int
|
|
{
|
|
return RSACrypt::ENCRYPTION_PKCS1;
|
|
}
|
|
|
|
#[Override]
|
|
protected function getHashAlgorithm(): ?string
|
|
{
|
|
return null;
|
|
}
|
|
}
|