STRUCT SGX_SIGSTRUCT_HEADER(9)
π struct sgx_sigstruct_header(9) β the Kernel API Manual, bestie edition π
okay so picture this: it's a struct in the kernel docs, manual section 9, and its whole entire job is literally just to say who made the enclave. that's it. that's the vibe. it defines the author of the enclave β¨
πΈ NAME πΈ
struct sgx_sigstruct_header β defines author of the enclave π«Ά
β¨ SYNOPSIS β¨
struct sgx_sigstruct_header {
u64 header1[2];
u32 vendor;
u32 date;
u64 header2[2];
u32 swdefined;
u8 reserved1[84];
};
like, look at her. she's giving "small but with 84 bytes of reserved energy." iconic π
π¦ Members π¦
so here's the field-by-field breakdown, no cap:
header1β constant byte string. that's the whole description bestie, it's a constant byte string, periodt πvendorβ must be either0x0000or0x8086. those are the only two options, fr fr. no vibes check beyond those πdateβYYYYMMDDin BCD. yes, BCD. yes, really. write your date right or don't write it at all πheader2β constant byte string. again. she's consistent, we love that πswdefinedβ software defined value. it's a value. defined by software. the name ate and left no crumbs πreserved1[84]β 84 reserved bytes, just sitting there being mysterious. no notes given, so no notes from me π
π₯ SEE ALSO π₯
- Kernel file
./arch/x86/include/asm/sgx.hβ the mothership π SGX_ENCLS_FAULT_FLAG(9)enum sgx_return_code(9)enum sgx_miscselect(9)enum sgx_attribute(9)struct sgx_secs(9)enum sgx_tcs_flags(9)struct sgx_tcs(9)struct sgx_pageinfo(9)enum sgx_page_type(9)enum sgx_secinfo_flags(9)struct sgx_secinfo(9)struct sgx_pcmd(9)struct sgx_sigstruct_body(9)struct sgx_sigstruct(9)
like, the whole SGX friend group showed up. go read them too, iykyk π
ok that's the whole page bestie, go forth and sign your enclaves correctly π
and that's a wrap!! brought to you from ./arch/x86/include/asm, dated October 2026, filed under struct sgx_sigstruct_header(9) β stan a well-documented struct, mwah π§βπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms