File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Encryption/Algorithm/KeyEncryption Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function usingThePurePhpMethod()
47
47
public function usingOpenSSL ()
48
48
{
49
49
$ key = openssl_pkey_new ([
50
- 'curve_name ' => 'prime256v1 ' ,
50
+ 'curve_name ' => 'prime256v1 ' ,
51
51
'private_key_type ' => OPENSSL_KEYTYPE_EC ,
52
52
]);
53
53
$ res = openssl_pkey_export ($ key , $ out );
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ private function getCurve(string $crv): Curve
232
232
*/
233
233
private function convertBase64ToGmp (string $ value ): \GMP
234
234
{
235
- $ value = unpack ('H* ' , Base64Url::decode ($ value ));;
235
+ $ value = unpack ('H* ' , Base64Url::decode ($ value ));
236
236
237
237
return gmp_init ($ value [1 ], 16 );
238
238
}
@@ -349,7 +349,7 @@ private static function createECKeyUsingPurePhp(string $curve): array
349
349
private static function createECKeyUsingOpenSSL (string $ curve ): array
350
350
{
351
351
$ key = openssl_pkey_new ([
352
- 'curve_name ' => self ::getOpensslCurveName ($ curve ),
352
+ 'curve_name ' => self ::getOpensslCurveName ($ curve ),
353
353
'private_key_type ' => OPENSSL_KEYTYPE_EC ,
354
354
]);
355
355
$ res = openssl_pkey_export ($ key , $ out );
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ private static function createECKeyUsingPurePhp(string $curve): array
118
118
private static function createECKeyUsingOpenSSL (string $ curve ): array
119
119
{
120
120
$ key = openssl_pkey_new ([
121
- 'curve_name ' => self ::getOpensslCurveName ($ curve ),
121
+ 'curve_name ' => self ::getOpensslCurveName ($ curve ),
122
122
'private_key_type ' => OPENSSL_KEYTYPE_EC ,
123
123
]);
124
124
$ res = openssl_pkey_export ($ key , $ out );
You can’t perform that action at this time.
0 commit comments