Skip to content

Commit

Permalink
Add support for countersign.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Dec 29, 2022
1 parent 32e737f commit 1447a54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cwt/cose_message.py
@@ -1,13 +1,8 @@
from typing import Any, Dict, List, Optional

from cbor2 import CBORTag, dumps, loads
from cbor2 import loads

from .cbor_processor import CBORProcessor
from .const import (
COSE_KEY_OPERATION_VALUES,
COSE_KEY_TYPES,
COSE_NAMED_ALGORITHMS_SUPPORTED,
)
from .cose_key_interface import COSEKeyInterface
from .enums import COSEType
from .signer import Signer
Expand Down Expand Up @@ -44,7 +39,7 @@ def unprotected(self) -> Dict[int, Any]:
"""
return self._unprotected


class COSESignature(COSEHeaders):
"""
The COSE signature.
Expand Down
1 change: 1 addition & 0 deletions cwt/enums.py
@@ -1,5 +1,6 @@
import enum


class COSEType(enum.Enum):
ENCRYPT0 = 16
ENCRYPT = 96
Expand Down

0 comments on commit 1447a54

Please sign in to comment.