Skip to content

Commit f75b608

Browse files
committed
Add enum COSEKeyTypes.
1 parent 272bdef commit f75b608

3 files changed

Lines changed: 61 additions & 50 deletions

File tree

cwt/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
COSEHeaders,
1818
COSEKeyOps,
1919
COSEKeyParams,
20+
COSEKeyTypes,
2021
COSETypes,
2122
CWTClaims,
2223
)
@@ -47,6 +48,7 @@
4748
"COSEHeaders",
4849
"COSEKeyOps",
4950
"COSEKeyParams",
51+
"COSEKeyTypes",
5052
"COSETypes",
5153
"COSEKey",
5254
"COSEMessage",

cwt/enums.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ class COSEHeaders(enum.IntEnum):
3434
CUPH_OWNER_PUB_KEY = 257
3535

3636

37+
class COSEKeyTypes(enum.IntEnum):
38+
OKP = 1
39+
EC2 = 2
40+
RSA = 3
41+
ASYMMETRIC = 4
42+
# HSS_LMS = 5
43+
# WALNUT_DSA = 6
44+
45+
3746
class COSEKeyParams(enum.IntEnum):
3847
KTY = 1
3948
KID = 2

0 commit comments

Comments
 (0)