Skip to content

Commit cc6abd4

Browse files
authored
Fix CS errors
1 parent 6c85c96 commit cc6abd4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/ECCryptoServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function getFingerPrint(?string $publicKey = null): string
7373
/**
7474
* Direct encryption is not supported with EC keys.
7575
* Use AES encryption with key derivation for data encryption.
76-
*
76+
*
7777
* @deprecated EC keys do not support direct encryption. Use hybrid encryption instead.
7878
* @throws NotImplementedException
7979
*/
@@ -88,7 +88,7 @@ public function encrypt(string $plainText): string
8888
/**
8989
* Direct decryption is not supported with EC keys.
9090
* Use AES decryption with key derivation for data decryption.
91-
*
91+
*
9292
* @deprecated EC keys do not support direct decryption. Use hybrid encryption instead.
9393
* @throws NotImplementedException
9494
*/
@@ -103,7 +103,7 @@ public function decrypt(string $encryptedText, string $privateKeyPass, string $s
103103
/**
104104
* Private encryption is not supported with EC keys.
105105
* EC keys are designed for signatures, not encryption.
106-
*
106+
*
107107
* @deprecated EC keys do not support encryption operations. Use sign() instead.
108108
* @throws NotImplementedException
109109
*/
@@ -118,7 +118,7 @@ public function privateEncrypt(string $plainText, string $privateKeyPass, string
118118
/**
119119
* Public decryption is not supported with EC keys.
120120
* EC keys are designed for signatures, not encryption.
121-
*
121+
*
122122
* @deprecated EC keys do not support decryption operations. Use verify() instead.
123123
* @throws NotImplementedException
124124
*/
@@ -129,4 +129,4 @@ public function publicDecrypt(string $encryptedText): string
129129
'EC keys are designed for digital signatures. Use verify() method instead.'
130130
);
131131
}
132-
}
132+
}

src/ECParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@ public function getFingerprint(bool $md5 = false): string
157157

158158
return hash('sha256', $derData);
159159
}
160-
}
160+
}

src/RSACryptoServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function verify(string $data, string $signature): bool
135135
{
136136
// Use SHA256 for EC keys, SHA512 for RSA keys
137137
$algorithm = $this->isECKey() ? OPENSSL_ALGO_SHA256 : OPENSSL_ALGO_SHA512;
138-
138+
139139
$verification = openssl_verify(
140140
$data,
141141
base64_decode($signature),

src/RSAParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RSAParameters
1414
'ec' => [
1515
'curve_name' => 'prime256v1', // NIST P-256, equivalent to RSA 3072-bit security
1616
]
17-
17+
1818
];
1919

2020
public function __construct()

0 commit comments

Comments
 (0)