From d0551e218cce18e8081a37a44cd39176eb0c5219 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Tue, 19 Nov 2024 14:58:53 +0100 Subject: [PATCH] Fix cose formatting for ES512 --- fido2/cose.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fido2/cose.py b/fido2/cose.py index b25baad6..75e72938 100644 --- a/fido2/cose.py +++ b/fido2/cose.py @@ -201,8 +201,8 @@ def from_cryptography_key(cls, public_key): 1: 2, 3: cls.ALGORITHM, -1: 3, - -2: int2bytes(pn.x, 64), - -3: int2bytes(pn.y, 64), + -2: int2bytes(pn.x, 66), + -3: int2bytes(pn.y, 66), } )