Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Morselli committed Apr 28, 2016
2 parents 88e5211 + 304c267 commit b6009a2
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 b6009a2

Please sign in to comment.