STRUCT SGX_SIGSTRUCT_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 either 0x0000 or 0x8086. those are the only two options, fr fr. no vibes check beyond those πŸ’€
  • date β€” YYYYMMDD in 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