Commit | Line | Data |
---|---|---|
14d4f286 S |
1 | <?php |
2 | /** | |
3 | * The Rijndael-128 based high strength mixer class | |
4 | * | |
5 | * This class implements a mixer based upon the recommendations in RFC 4086 | |
6 | * section 5.2 | |
7 | * | |
8 | * PHP version 5.3 | |
9 | * | |
10 | * @see http://tools.ietf.org/html/rfc4086#section-5.2 | |
11 | * @category PHPCryptLib | |
12 | * @package Random | |
13 | * @subpackage Mixer | |
14 | * @author Anthony Ferrara <ircmaxell@ircmaxell.com> | |
15 | * @copyright 2011 The Authors | |
16 | * @license http://www.opensource.org/licenses/mit-license.html MIT License | |
17 | * @version Build @@version@@ | |
18 | */ | |
19 | ||
20 | namespace CryptLib\Random\Mixer; | |
21 | ||
22 | use \CryptLib\Cipher\Factory as CipherFactory; | |
23 | use \CryptLib\Core\Strength; | |
24 | ||
25 | /** | |
26 | * The Rijndael-128 based high strength mixer class | |
27 | * | |
28 | * This class implements a mixer based upon the recommendations in RFC 4086 | |
29 | * section 5.2 | |
30 | * | |
31 | * @see http://tools.ietf.org/html/rfc4086#section-5.2 | |
32 | * @category PHPCryptLib | |
33 | * @package Random | |
34 | * @subpackage Mixer | |
35 | * @author Anthony Ferrara <ircmaxell@ircmaxell.com> | |
36 | */ | |
37 | class Rijndael extends DES { | |
38 | ||
39 | /** | |
40 | * An instance of a Rijndael symmetric encryption cipher | |
41 | * | |
42 | * @var Cipher The Rijndael cipher instance | |
43 | */ | |
44 | protected $cipher = 'rijndael-128'; | |
45 | ||
46 | /** | |
47 | * Return an instance of Strength indicating the strength of the source | |
48 | * | |
49 | * @return Strength An instance of one of the strength classes | |
50 | */ | |
51 | public static function getStrength() { | |
52 | return new Strength(Strength::HIGH); | |
53 | } | |
54 | ||
55 | } |