Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #98 from Spomky-Labs/analysis-8wj6GK
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
Spomky committed Apr 29, 2016
2 parents b6cabcf + bdadbeb commit c200355
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Algorithm/ContentEncryption/AESGCM.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace Jose\Algorithm\ContentEncryption;

use AESGCM\AESGCM as GCM;
use Crypto\Cipher;
use Jose\Algorithm\ContentEncryptionAlgorithmInterface;
use AESGCM\AESGCM as GCM;

abstract class AESGCM implements ContentEncryptionAlgorithmInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Algorithm/KeyEncryption/AESGCMKW.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

namespace Jose\Algorithm\KeyEncryption;

use AESGCM\AESGCM;
use Assert\Assertion;
use Base64Url\Base64Url;
use Crypto\Cipher;
use Jose\Object\JWKInterface;
use AESGCM\AESGCM;

/**
* Class AESGCMKW.
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/JWKFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function createRandomECPrivateKey($curve, array $additional_values
}

/**
* @param array $additional_values
* @param array $additional_values
*
* @return \Jose\Object\JWKInterface
*/
Expand All @@ -62,7 +62,7 @@ public static function createRandomX25519PrivateKey(array $additional_values = [
}
$d = random_bytes(32);
$x = curve25519_public($d);

$values = [
'kty' => 'OKP',
'crv' => 'X25519',
Expand Down
6 changes: 3 additions & 3 deletions tests/Functional/LoaderAndCreatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* of the MIT license. See the LICENSE file for details.
*/

use Jose\Decrypter;
use Jose\Encrypter;
use Jose\JWTCreator;
use Jose\JWTLoader;
use Jose\Object\JWK;
use Jose\Object\JWKSet;
use Jose\Signer;
use Jose\Verifier;
use Jose\Encrypter;
use Jose\Decrypter;
use Jose\Test\TestCase;
use Jose\Verifier;

/**
* @group JWTLoader
Expand Down
3 changes: 2 additions & 1 deletion tests/Unit/Algorithm/ECDHESKeyAgreementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use Jose\Algorithm\KeyEncryption\ECDHESA128KW;
use Jose\Algorithm\KeyEncryption\ECDHESA192KW;
use Jose\Algorithm\KeyEncryption\ECDHESA256KW;
use Jose\Object\JWK;
use Jose\Factory\JWKFactory;
use Jose\Object\JWK;

/**
* Class ECDHESKeyAgreementTest.
Expand Down Expand Up @@ -238,6 +238,7 @@ public function testUnsupportedCurve()
$ecdh_es = new ECDHES();
$ecdh_es->getAgreementKey(256, 'A128GCM', $receiver, $header);
}

/**
* @see https://tools.ietf.org/html/rfc7518#appendix-C
*/
Expand Down

0 comments on commit c200355

Please sign in to comment.