Commit | Line | Data |
---|---|---|
14d4f286 S |
1 | <?php |
2 | /** | |
3 | * To change this template, choose Tools | Templates | |
4 | * and open the template in the editor. | |
5 | * @version Build @@version@@ | |
6 | */ | |
7 | ||
8 | namespace CryptLib\Key; | |
9 | ||
10 | /** | |
11 | * Description of generator | |
12 | * | |
13 | * @author ircmaxell | |
14 | * @codeCoverageIgnore | |
15 | */ | |
16 | interface Generator extends Key { | |
17 | ||
18 | public static function test(); | |
19 | ||
20 | public function __construct(array $options = array()); | |
21 | ||
22 | /** | |
23 | * Generate a key of the supplied size | |
24 | * | |
25 | * @param Strength $strength The strength of the generated key | |
26 | * @param int $size The size of the generated key (in bytes) | |
27 | * @param string $passPhrase The passphrase to encrypt the key with | |
28 | * | |
29 | * @return void | |
30 | */ | |
31 | public function generate( | |
32 | \CryptLib\Core\Strength $strength, | |
33 | $size, | |
34 | $passPhrase = '' | |
35 | ); | |
36 | ||
37 | } |