1 /*! 2 * @header 3 * Cryptex1 chip environments. 4 */ 5 #ifndef __IMG4_CHIP_SEP_H 6 #define __IMG4_CHIP_SEP_H 7 8 #ifndef __IMG4_INDIRECT 9 #error "Please #include <img4/firmware.h> instead of this file directly" 10 #endif // __IMG4_INDIRECT 11 12 OS_ASSUME_NONNULL_BEGIN 13 14 /*! 15 * @const IMG4_CHIP_SEP_SHA1 16 * The Secure Enclave Processor on an Apple ARM SoC with an embedded sha1 17 * certifcate chain. 18 * 19 * This chip environment represents one unique instance of such a chip. 20 */ 21 #if !XNU_KERNEL_PRIVATE 22 IMG4_API_AVAILABLE_20211119 23 OS_EXPORT 24 const img4_chip_t _img4_chip_sep_sha1; 25 #define IMG4_CHIP_SEP_SHA1 (&_img4_chip_sep_sha1) 26 #else 27 #define IMG4_CHIP_SEP_SHA1 (img4if->i4if_v16.chip_sep_sha1) 28 #endif 29 30 /*! 31 * @const IMG4_CHIP_SEP_SHA2_384 32 * The Secure Enclave Processor on an Apple ARM SoC with an embedded sha2-384 33 * certifcate chain. 34 * 35 * This chip environment represents one unique instance of such a chip. 36 */ 37 #if !XNU_KERNEL_PRIVATE 38 IMG4_API_AVAILABLE_20211119 39 OS_EXPORT 40 const img4_chip_t _img4_chip_sep_sha2_384; 41 #define IMG4_CHIP_SEP_SHA2_384 (&_img4_chip_sep_sha2_384) 42 #else 43 #define IMG4_CHIP_SEP_SHA2_384 (img4if->i4if_v16.chip_sep_sha2_384) 44 #endif 45 46 OS_ASSUME_NONNULL_END 47 48 #endif // __IMG4_CHIP_SEP_H 49