| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class RSASignature extends Signature |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Signature value *S*. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $_signature; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor. |
||
| 27 | */ |
||
| 28 | 2 | protected function __construct() |
|
| 29 | { |
||
| 30 | 2 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Initialize from RSA signature *S*. |
||
| 34 | * |
||
| 35 | * Signature value *S* is the result of last step in RSA signature |
||
| 36 | * process defined in PKCS #1. |
||
| 37 | * |
||
| 38 | * @see https://tools.ietf.org/html/rfc2313#section-10.1.4 |
||
| 39 | * |
||
| 40 | * @param string $signature Signature bits |
||
| 41 | * |
||
| 42 | * @return self |
||
| 43 | */ |
||
| 44 | 2 | public static function fromSignatureString(string $signature): Signature |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 1 | public function bitString(): BitString |
|
| 57 | } |
||
| 58 | } |
||
| 59 |