Skip to content

Commit ba72c18

Browse files
committed
Bug fixed with ECDSA signatures
1 parent 8939c36 commit ba72c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Component/Core/Util/ECSignature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private static function preparePositiveInteger(string $data): string
9292
if (mb_substr($data, 0, 2, '8bit') >= '7f') {
9393
return '00'.$data;
9494
}
95-
while ('00' === mb_substr($data, 0, 2, '8bit') && mb_substr($data, 2, 2, '8bit') < '7f') {
95+
while ('00' === mb_substr($data, 0, 2, '8bit') && mb_substr($data, 2, 2, '8bit') <= '7f') {
9696
$data = mb_substr($data, 2, null, '8bit');
9797
}
9898

0 commit comments

Comments
 (0)