Cozy can be linked as an external module to any Zephyr app. This library is built on mbedTLS and NanoCBOR.
- Encode/decode COSE Sign1 objects
- Encode/decode COSE Encrypt0 objects
- EC signature algorithms: NIST P-256, NIST P-384
- AEAD algorithms: AES-GCM 128, AES-GCM 192, AES-GCM 256
Add the following line to your app's CMakeLists.txt
:
set(ZEPHYR_EXTRA_MODULES <absolute_path_to>/cozy)
Add the following line to your app's prj.conf
:
CONFIG_COZY=y
Access the Cozy API from your source files with #include <cozy/cose.h>
.
Run west build -t run -b native_posix
from the tests
directory. See tests/src/tests.c
for examples.