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