mirror of https://github.com/Yubico/python-fido2
Fix returned curve for ES384 and ES512.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
e82f231da9
commit
2d7e9e1610
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue