File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ private static function p256PrivateKey(JWK $jwk): string
165
165
.$ d
166
166
.'a00a ' // TAGGED OBJECT #0, length 10
167
167
.'0608 ' // OID, length 8
168
- .'2a8648ce3d030107 ' // 1.3.132.0.34 = P-384 Curve
168
+ .'2a8648ce3d030107 ' // 1.3.132.0.34 = P-256 Curve
169
169
.'a144 ' // TAGGED OBJECT #1, length 68
170
170
.'0342 ' // BIT STRING, length 66
171
171
.'00 ' // prepend with NUL - pubkey will follow
Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ private static function createECKeyUsingOpenSSL(string $curve): array
132
132
return [
133
133
'kty ' => 'EC ' ,
134
134
'crv ' => $ curve ,
135
- 'x ' => Base64Url::encode (bin2hex ( $ details ['ec ' ]['x ' ]) ),
136
- 'y ' => Base64Url::encode (bin2hex ( $ details ['ec ' ]['y ' ]) ),
137
- 'd ' => Base64Url::encode (bin2hex ( $ details ['ec ' ]['d ' ]) ),
135
+ 'x ' => Base64Url::encode ($ details ['ec ' ]['x ' ]),
136
+ 'y ' => Base64Url::encode ($ details ['ec ' ]['y ' ]),
137
+ 'd ' => Base64Url::encode ($ details ['ec ' ]['d ' ]),
138
138
];
139
139
}
140
140
You can’t perform that action at this time.
0 commit comments