Add attestation report creation
Adds components to create a cbor encoded attestion report using
claims gathered from registered claim sources. Tests added
that check the decoded cbor is as expected.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I8faddd6c5bea120745f85d70846725c5c51665b6
diff --git a/components/service/attestation/claims/claim_source.h b/components/service/attestation/claims/claim_source.h
index 5c28c47..381f263 100644
--- a/components/service/attestation/claims/claim_source.h
+++ b/components/service/attestation/claims/claim_source.h
@@ -7,6 +7,7 @@
#ifndef CLAIM_SOURCE_H
#define CLAIM_SOURCE_H
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
@@ -24,7 +25,12 @@
bool (*get_claim)(void *context, struct claim *claim);
void *context;
- /* Generic claim source properties to be added */
+ /**
+ * A bitmap of claim categories that this claim_source provides claims for.
+ * Claim categories are enumerated by enum claim_category.
+ */
+ uint32_t category_map;
+
};
/**