Skip to content

Commit

Permalink
Merge pull request #6 from DTLab-LabCN/main
Browse files Browse the repository at this point in the history
add secp384r1 mapping
  • Loading branch information
peppelinux authored Apr 11, 2024
2 parents 8e2fe13 + a5b671f commit 4d5bdee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymdoccbor/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.1"
__version__ = "0.7.0"
6 changes: 5 additions & 1 deletion pymdoccbor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
import os

COSEKEY_HAZMAT_CRV_MAP = {
"secp256r1": "P_256"
"secp256r1": "P_256",
"secp384r1": "P_384",
"secp521r1": "P_521"
}

CRV_LEN_MAP = {
"secp256r1": 32,
"secp384r1": 48,
"secp521r1": 66
}

PYMDOC_HASHALG: str = os.getenv('PYMDOC_HASHALG', "SHA-256")
Expand Down

0 comments on commit 4d5bdee

Please sign in to comment.