STRUCT SGX_SIGSTRUCT(9)
okay bestie, this is struct sgx_sigstruct(9) from the Kernel API Manual β the enclave signature page, and it's giving signed-struct main character energy π₯
π NAME π
struct sgx_sigstruct β an enclave signature. That's the whole vibe: it's the signature struct for an enclave, periodt. π
β¨ SYNOPSIS β¨
struct sgx_sigstruct {
struct sgx_sigstruct_header header;
u8 modulus[SGX_MODULUS_SIZE];
u32 exponent;
u8 signature[SGX_MODULUS_SIZE];
struct sgx_sigstruct_body body;
u8 reserved4[12];
u8 q1[SGX_MODULUS_SIZE];
u8 q2[SGX_MODULUS_SIZE];
};
π Members π
headerβ defines author of the enclave. Okay so this is the "who made this" part β¨modulusβ the modulus of the public key. Big RSA math energy π₯exponentβ the exponent of the public key. The other half of the public-key moment πsignatureβ the signature calculated over the fields exceptmodulus, (and yes, that comma is in the original, bestie β we're keeping it π )bodyβ defines contents of the enclave. This is the "what's inside" part π«Άq1β a value used in RSA signature verification. Cryptography bestie behavior πq2β a value used in RSA signature verification. q1's little verification partner, no cap πΈ
psst: the synopsis also has u8 reserved4[12]; β it's in the struct, but this page doesn't give it its own member line, so we are absolutely not inventing lore for it π
π Description π
The header and body are the parts that are actual signed. The remaining fields define the signature of the enclave. That's it, that's the tea β header + body get signed, and the rest of the struct is the signature situation β¨
π SEE ALSO π
Kernel file ./arch/x86/include/asm/sgx.h β yes, that exact path, bestie π¦
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_header(9)struct sgx_sigstruct_body(9)
mwah π β source/version-line vibes: ./arch/x86/include/asm, date October 2026, page struct sgx_sigstruct(9). That's the whole footer, periodt π«Ά
π¦ 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