| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 60 | public static function generate($ephemeral = false) : EncryptionKeyInterface |
||
| 61 | { |
||
| 62 | $object = new static; |
||
| 63 | $object->hashId = \bin2hex(\random_bytes(32)); |
||
| 64 | $object->key = Utils::generateKeyPair(); |
||
| 65 | $object->signingKey = Utils::generateSigningKeypair(); |
||
| 66 | |||
| 67 | return $object; |
||
| 68 | } |
||
| 70 |