Skip to content

Commit

Permalink
Merge pull request #1 from Spomky-Labs/analysis-XajekV
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
Spomky committed Apr 28, 2016
2 parents c28e386 + d5f6875 commit 304c267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/IEEE802Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class IEEE802Test extends \PHPUnit_Framework_TestCase
*/
public function testVectors($K, $P, $A, $IV, $expected_C, $expected_T)
{
list ($C, $T) = AESGCM::encrypt($K, $IV, $P, $A);
list($C, $T) = AESGCM::encrypt($K, $IV, $P, $A);

$this->assertEquals($C, $expected_C);
$this->assertEquals($T, $expected_T);

$computed_P = AESGCM::decrypt($K, $IV, $C, $A, $T);

$this->assertEquals($P, $computed_P);
Expand Down
4 changes: 2 additions & 2 deletions tests/NistTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class NistTest extends \PHPUnit_Framework_TestCase
*/
public function testVectors($K, $P, $A, $IV, $expected_C, $expected_T)
{
list ($C, $T) = AESGCM::encrypt($K, $IV, $P, $A);
list($C, $T) = AESGCM::encrypt($K, $IV, $P, $A);

$this->assertEquals($C, $expected_C);
$this->assertEquals($T, $expected_T);

$computed_P = AESGCM::decrypt($K, $IV, $C, $A, $T);

$this->assertEquals($P, $computed_P);
Expand Down

0 comments on commit 304c267

Please sign in to comment.