Fix returned curve for ES384 and ES512.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-08-22 13:17:15 +02:00
parent e82f231da9
commit 2d7e9e1610
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3
1 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ class ES384(CoseKey):
{
1: 2,
3: cls.ALGORITHM,
-1: 1,
-1: 2,
-2: int2bytes(pn.x, 48),
-3: int2bytes(pn.y, 48),
}
@ -192,7 +192,7 @@ class ES512(CoseKey):
{
1: 2,
3: cls.ALGORITHM,
-1: 1,
-1: 3,
-2: int2bytes(pn.x, 64),
-3: int2bytes(pn.y, 64),
}