uploaded 1 day ago
COSE (RFC 8152/9052) library for ESP32 using mbedtls PSA Crypto
7 examples
-
countersig
Creates a COSE_Sign1 message with two Ed25519 Countersignature0 signatures and verifies both.
1.53 KB
-
encrypt
Wraps a content encryption key with A256KW, encrypts payload with AES-GCM-128, then decrypts and verifies.
1.29 KB
-
encrypt0
Encrypts plaintext with AES-GCM-128, then decrypts it back.
1.21 KB
-
mac
Wraps a MAC key with A256KW, computes HMAC-SHA-256, then verifies the tag.
1.28 KB
-
mac0
Creates an HMAC-SHA-256 MAC, then verifies the tag.
1.20 KB
-
sign
Signs a payload with two Ed25519 keys (multi-signer), then verifies using the first signer's public key.
1.53 KB
-
sign1
Creates a COSE_Sign1 message with Ed25519 and verifies it using the public key.
1.39 KB