diff --git a/performance/KeyFactory/KeyFactory.php b/performance/KeyFactory/KeyFactory.php index 86ec7738..c5768fc8 100644 --- a/performance/KeyFactory/KeyFactory.php +++ b/performance/KeyFactory/KeyFactory.php @@ -47,7 +47,7 @@ public function usingThePurePhpMethod() public function usingOpenSSL() { $key = openssl_pkey_new([ - 'curve_name' => 'prime256v1', + 'curve_name' => 'prime256v1', 'private_key_type' => OPENSSL_KEYTYPE_EC, ]); $res = openssl_pkey_export($key, $out); diff --git a/src/Component/Encryption/Algorithm/KeyEncryption/ECDHES.php b/src/Component/Encryption/Algorithm/KeyEncryption/ECDHES.php index c8e664f3..eddcaa3b 100644 --- a/src/Component/Encryption/Algorithm/KeyEncryption/ECDHES.php +++ b/src/Component/Encryption/Algorithm/KeyEncryption/ECDHES.php @@ -232,7 +232,7 @@ private function getCurve(string $crv): Curve */ private function convertBase64ToGmp(string $value): \GMP { - $value = unpack('H*', Base64Url::decode($value));; + $value = unpack('H*', Base64Url::decode($value)); return gmp_init($value[1], 16); } @@ -349,7 +349,7 @@ private static function createECKeyUsingPurePhp(string $curve): array private static function createECKeyUsingOpenSSL(string $curve): array { $key = openssl_pkey_new([ - 'curve_name' => self::getOpensslCurveName($curve), + 'curve_name' => self::getOpensslCurveName($curve), 'private_key_type' => OPENSSL_KEYTYPE_EC, ]); $res = openssl_pkey_export($key, $out); diff --git a/src/Component/KeyManagement/JWKFactory.php b/src/Component/KeyManagement/JWKFactory.php index e2e8e730..e2040749 100644 --- a/src/Component/KeyManagement/JWKFactory.php +++ b/src/Component/KeyManagement/JWKFactory.php @@ -118,7 +118,7 @@ private static function createECKeyUsingPurePhp(string $curve): array private static function createECKeyUsingOpenSSL(string $curve): array { $key = openssl_pkey_new([ - 'curve_name' => self::getOpensslCurveName($curve), + 'curve_name' => self::getOpensslCurveName($curve), 'private_key_type' => OPENSSL_KEYTYPE_EC, ]); $res = openssl_pkey_export($key, $out);