Skip to content

Commit 2b763d4

Browse files
authored
Add COSE key and sign1 rendering. (#83)
Implement a subset of COSE data object rendering. Specifically: - COSE_Key with support for EC keys with curves p256, p384, and ed25519. - COSE_Sign1. The COSE_Sign1 method also constructs a gather list that represents the Sig_structure used for signing. See RFC9052.
1 parent 820d8c7 commit 2b763d4

File tree

4 files changed

+1244
-0
lines changed

4 files changed

+1244
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ set(LIBNAT20_SOURCES
9494
# Add the core library source files here.
9595
src/core/asn1.c
9696
src/core/cbor.c
97+
src/core/cose.c
9798
src/core/functionality.c
9899
src/core/oid.c
99100
src/core/stream.c
@@ -110,6 +111,7 @@ set(LIBNAT20_PUB_HEADERS
110111
include/nat20/asn1.h
111112
include/nat20/cbor.h
112113
include/nat20/constants.h
114+
include/nat20/cose.h
113115
include/nat20/crypto.h
114116
include/nat20/endian.h
115117
include/nat20/error.h
@@ -147,6 +149,7 @@ set(LIBNAT20_TEST_SOURCES
147149
# Add test source files here.
148150
src/core/test/asn1.cpp
149151
src/core/test/cbor.cpp
152+
src/core/test/cose.cpp
150153
src/core/test/functionality.cpp
151154
src/core/test/oid.cpp
152155
src/core/test/stream.cpp

0 commit comments

Comments
 (0)