From d5f68754e3d83b888d779b4dc7ca30fb7c722cf0 Mon Sep 17 00:00:00 2001 From: Spomky Date: Thu, 28 Apr 2016 09:42:04 -0400 Subject: [PATCH] Applied fixes from StyleCI --- tests/IEEE802Test.php | 4 ++-- tests/NistTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/IEEE802Test.php b/tests/IEEE802Test.php index 13a4916..5f1a0e6 100644 --- a/tests/IEEE802Test.php +++ b/tests/IEEE802Test.php @@ -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); diff --git a/tests/NistTest.php b/tests/NistTest.php index a5f3a35..167c779 100644 --- a/tests/NistTest.php +++ b/tests/NistTest.php @@ -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);