#include <kern/trustcache.h>

kern/trustcache.h Kernel.framework

Version 1 trust caches: Always sorted by cdhash, added hash type and flags field. Suitable for all trust caches.
includes: Kernel/stdint.h, kern/cs_blobs.h, uuid/uuid.h
8 macros · 2 structs

structtrust_cache_entry1

size 22, align 1 · packed
uint8_t[20]cdhash
uint8_thash_type
uint8_tflags

structtrust_cache_module1

size 24, align 1 · packed
uint32_tversion
uuid_tuuid
uint32_tnum_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