Skip to content

Commit

Permalink
[3.x] Removes lingering error-prone string (#92)
Browse files Browse the repository at this point in the history
* [3.x] Removes error-prone string

* Apply fixes from StyleCI

[ci skip] [skip ci]

---------

Co-authored-by: Italo Israel Baeza Cabrera <[email protected]>
Co-authored-by: Italo <[email protected]>
  • Loading branch information
3 people authored Jul 28, 2024
1 parent 9cd16fb commit 208df5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assertion/Validator/Pipes/CheckPublicKeySignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function validateWithOpenSsl(string $signature, string $verifiable, We
{
if (! $publicKey = openssl_pkey_get_public($credential->public_key)) {
throw AssertionException::make('Public key is invalid: '.openssl_error_string());
}https://
}

if (openssl_verify($verifiable, $signature, $publicKey, OPENSSL_ALGO_SHA256) !== 1) {
throw AssertionException::make('Signature is invalid: '.openssl_error_string());
Expand Down

0 comments on commit 208df5d

Please sign in to comment.