From 34524ec1b848168d807cf50f00bdb125a4a6e0e4 Mon Sep 17 00:00:00 2001 From: Patrick St-Louis Date: Tue, 26 Mar 2024 10:00:34 -0400 Subject: [PATCH 1/4] add secp384r1 mapping Signed-off-by: Patrick St-Louis --- pymdoccbor/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pymdoccbor/settings.py b/pymdoccbor/settings.py index 1da0d10..d6139c0 100644 --- a/pymdoccbor/settings.py +++ b/pymdoccbor/settings.py @@ -2,11 +2,13 @@ import os COSEKEY_HAZMAT_CRV_MAP = { - "secp256r1": "P_256" + "secp256r1": "P_256", + "secp384r1": "P_384" } CRV_LEN_MAP = { "secp256r1": 32, + "secp384r1": 48, } PYMDOC_HASHALG: str = os.getenv('PYMDOC_HASHALG', "SHA-256") From 284361116b0f04993f25217ba4827768e83cf9b2 Mon Sep 17 00:00:00 2001 From: Patrick St-Louis <43082425+PatStLouis@users.noreply.github.com> Date: Wed, 10 Apr 2024 13:27:27 -0400 Subject: [PATCH 2/4] Update pymdoccbor/settings.py Co-authored-by: Pasquale De Rose --- pymdoccbor/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymdoccbor/settings.py b/pymdoccbor/settings.py index d6139c0..0def23a 100644 --- a/pymdoccbor/settings.py +++ b/pymdoccbor/settings.py @@ -3,7 +3,8 @@ COSEKEY_HAZMAT_CRV_MAP = { "secp256r1": "P_256", - "secp384r1": "P_384" + "secp384r1": "P_384", + "secp521r1": "P_521" } CRV_LEN_MAP = { From e1e39656e2aed12fb3f54b39bf02e0f99b252e94 Mon Sep 17 00:00:00 2001 From: Patrick St-Louis <43082425+PatStLouis@users.noreply.github.com> Date: Wed, 10 Apr 2024 13:27:32 -0400 Subject: [PATCH 3/4] Update pymdoccbor/settings.py Co-authored-by: Pasquale De Rose --- pymdoccbor/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymdoccbor/settings.py b/pymdoccbor/settings.py index 0def23a..8ba2777 100644 --- a/pymdoccbor/settings.py +++ b/pymdoccbor/settings.py @@ -10,6 +10,7 @@ CRV_LEN_MAP = { "secp256r1": 32, "secp384r1": 48, + "secp521r1": 66 } PYMDOC_HASHALG: str = os.getenv('PYMDOC_HASHALG', "SHA-256") From a5b671f8d2a343d4af43b5828e7596500e98057b Mon Sep 17 00:00:00 2001 From: Patrick St-Louis <43082425+PatStLouis@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:52:30 -0400 Subject: [PATCH 4/4] Bump version to 0.7.0 --- pymdoccbor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymdoccbor/__init__.py b/pymdoccbor/__init__.py index 43c4ab0..49e0fc1 100644 --- a/pymdoccbor/__init__.py +++ b/pymdoccbor/__init__.py @@ -1 +1 @@ -__version__ = "0.6.1" +__version__ = "0.7.0"