Skip to content

Commit 04c6bd2

Browse files
committed
ECDSA Signature computation fixed
1 parent 12660b5 commit 04c6bd2

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
@@ -89,7 +89,7 @@ public static function fromDER(string $der, int $partLength): string
8989
*/
9090
private static function preparePositiveInteger(string $data): string
9191
{
92-
if (mb_substr($data, 0, 2, '8bit') >= '7f') {
92+
if (mb_substr($data, 0, 2, '8bit') > '7f') {
9393
return '00'.$data;
9494
}
9595
while ('00' === mb_substr($data, 0, 2, '8bit') && mb_substr($data, 2, 2, '8bit') <= '7f') {

0 commit comments

Comments
 (0)