Esempio n. 1
0
 /** @ignore */
 public static function __test($o = null)
 {
     parent::__test($o);
 }
Esempio n. 2
0
 /**
  * Test all available algorithms in all available modes
  * @ignore
  */
 public static function __test()
 {
     # prevent auto-tests from running if mcrypt isnt installed
     if (!defined('MCRYPT_RAND')) {
         return;
     }
     $key = 'tr7raxe5apHeTr2v';
     # test all algos and all supported modes for each algo
     foreach (mcrypt_list_algorithms() as $a) {
         foreach (mcrypt_list_modes() as $m) {
             if (@mcrypt_get_block_size($a, $m)) {
                 parent::__test(new self($a, $m, $key));
             }
         }
     }
 }
Esempio n. 3
0
 /** @ignore */
 public static function __test()
 {
     parent::__test(new self('tr7raxe5apHeTr2v'));
 }
Esempio n. 4
0
 /** @ignore */
 public static function __test()
 {
     parent::__test(new self('abcdefghijklmnop'));
 }