Ejemplo n.º 1
0
 /**
  * @depends testConcatIv
  */
 function testSplitIv($testConcatIv)
 {
     // Split catfile into components
     $splitCatfile = Encryption\Crypt::splitIv($testConcatIv['catfile']);
     // Check that original IV and split IV match
     $this->assertEquals($testConcatIv['iv'], $splitCatfile['iv']);
     // Check that original data and split data match
     $this->assertEquals($this->dataLong, $splitCatfile['encrypted']);
 }