Ejemplo n.º 1
0
 public static function provideTestVerify()
 {
     $results = array();
     $file = \CryptLibTest\getTestDataFile('Vectors/drupal.custom.test-vectors');
     $nessie = new CryptLibTest\lib\VectorParser\SSV($file);
     foreach ($nessie->getVectors() as $vector) {
         $results[] = array($vector[0], $vector[1], true);
     }
     return $results;
 }
Ejemplo n.º 2
0
 public static function provideTestVerify()
 {
     $file = \CryptLibTest\getTestDataFile('Vectors/apr1.test-vectors');
     $nessie = new CryptLibTest\lib\VectorParser\NESSIE($file);
     $results = array();
     foreach ($nessie->getVectors() as $vector) {
         $results[] = array($vector['P'], $vector['H'], (bool) $vector['Value']);
     }
     $file = \CryptLibTest\getTestDataFile('Vectors/apr1.custom.test-vectors');
     $nessie = new CryptLibTest\lib\VectorParser\SSV($file);
     foreach ($nessie->getVectors() as $vector) {
         $results[] = array($vector[0], $vector[1], true);
     }
     return $results;
 }
Ejemplo n.º 3
0
 /**
  * @return array The test vectors
  */
 public static function provideTestEncryptVectors()
 {
     $file = \CryptLibTest\getTestDataFile('Vectors/des.test-vectors');
     $nessie = new CryptLibTest\lib\VectorParser\SSV($file);
     return $nessie->getVectors();
 }