And it found an error in the test code
diff --git a/test/encrypt.c b/test/encrypt.c
index 9802381..265c4a3 100644
--- a/test/encrypt.c
+++ b/test/encrypt.c
@@ -268,7 +268,7 @@
 	hEnc = (HCOSE_ENCRYPT)COSE_Decode(pbEncoded, cbEncoded, &type, COSE_encrypt_object, CBOR_CONTEXT_PARAM_COMMA NULL);
 	if (hEnc == NULL) exit(1);
 
-	if (!SetAttributes((HCOSE)hEnc, cn_cbor_mapget_string(pEncrypt, "unsent"), Attributes_Enveloped_unsent)) {
+	if (!SetAttributes((HCOSE)hEnc, cn_cbor_mapget_string(pEncrypt, "unsent"), Attributes_Encrypt_unsent)) {
 		fFail = true;
 		goto exitHere;
 	}