| Total Complexity | 7 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class TpmEccParameters implements KeyParametersInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | private $symmetric; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $scheme; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $curveId; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $kdf; |
||
| 28 | |||
| 29 | public function __construct(int $symmetric, int $scheme, int $curveId, int $kdf) |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getAlgorithm(): int |
||
| 38 | { |
||
| 39 | return TpmPublic::TPM_ALG_ECC; |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function parse(ByteBuffer $buffer, int $offset, int &$endOffset): KeyParametersInterface |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getSymmetric(): int |
||
| 53 | { |
||
| 54 | return $this->symmetric; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function getScheme(): int |
||
| 58 | { |
||
| 59 | return $this->scheme; |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getCurveId(): int |
||
| 63 | { |
||
| 64 | return $this->curveId; |
||
| 65 | } |
||
| 66 | |||
| 67 | public function getKdf(): int |
||
| 70 | } |
||
| 71 | } |
||
| 72 |