| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 45 | public static function generate($ephemeral = false) : EncryptionKeyInterface |
||
| 46 | { |
||
| 47 | $object = new static; |
||
| 48 | $object->hashId = \bin2hex(\random_bytes(32)); |
||
| 49 | $object->key = Utils::generateKeyPair(); |
||
| 50 | $object->signingKey = Utils::generateSigningKeypair(); |
||
| 51 | |||
| 52 | return $object; |
||
| 53 | } |
||
| 55 |