#include <kern/trustcache.h>
kern/trustcache.h
Version 1 trust caches: Always sorted by cdhash, added hash type and flags field.
Suitable for all trust caches.
structtrust_cache_entry1
| uint8_t[20] | cdhash | |
| uint8_t | hash_type | |
| uint8_t | flags |
structtrust_cache_module1
| uint32_t | version | |
| uuid_t | uuid | |
| uint32_t | num_entries | |
| struct trust_cache_entry1[] | entries |
macroCS_TRUST_CACHE_AMFID
Trust Cache Entry Flags
#define CS_TRUST_CACHE_AMFID 0x1
valid cdhash for amfid
macroTC_LOOKUP_HASH_TYPE_SHIFT
#define TC_LOOKUP_HASH_TYPE_SHIFT 16
macroTC_LOOKUP_HASH_TYPE_MASK
#define TC_LOOKUP_HASH_TYPE_MASK 0xff0000L;
macroTC_LOOKUP_FLAGS_SHIFT
#define TC_LOOKUP_FLAGS_SHIFT 8
macroTC_LOOKUP_FLAGS_MASK
#define TC_LOOKUP_FLAGS_MASK 0xff00L
macroTC_LOOKUP_RESULT_SHIFT
#define TC_LOOKUP_RESULT_SHIFT 0
macroTC_LOOKUP_RESULT_MASK
#define TC_LOOKUP_RESULT_MASK 0xffL
macroTC_LOOKUP_FOUND
#define TC_LOOKUP_FOUND 1