We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92e7cfe commit 220e1e5Copy full SHA for 220e1e5
1 file changed
src/Key/PublicKey.php
@@ -65,7 +65,7 @@ protected static function makeASN1Segment(int $type, string $string): ?string
65
{
66
switch ($type) {
67
case self::ASN1_TYPE_INTEGER:
68
- if (ord($string) > self::ASN1_SIZE_128 - 1) {
+ if (ord($string[0]) > self::ASN1_SIZE_128 - 1) {
69
$string = chr(0) . $string;
70
}
71
break;
0 commit comments