Home
last modified time | relevance | path

Searched refs:sigstruct (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/tools/testing/selftests/sgx/
H A Dsigstruct.c318 struct sgx_sigstruct *sigstruct = &encl->sigstruct; in encl_measure() local
326 memset(sigstruct, 0, sizeof(*sigstruct)); in encl_measure()
328 sigstruct->header.header1[0] = header1[0]; in encl_measure()
329 sigstruct->header.header1[1] = header1[1]; in encl_measure()
330 sigstruct->header.header2[0] = header2[0]; in encl_measure()
332 sigstruct->exponent = 3; in encl_measure()
334 sigstruct->body.xfrm = 3; in encl_measure()
365 memcpy(&payload.header, &sigstruct->header, sizeof(sigstruct->header)); in encl_measure()
366 memcpy(&payload.body, &sigstruct->body, sizeof(sigstruct->body)); in encl_measure()
374 if (!calc_q1q2(sigstruct->signature, sigstruct->modulus, sigstruct->q1, in encl_measure()
[all …]
H A DMakefile30 $(OUTPUT)/sigstruct.o \
41 $(OUTPUT)/sigstruct.o: sigstruct.c
58 $(OUTPUT)/sigstruct.o \
H A Dmain.h31 struct sgx_sigstruct sigstruct; member
H A Dload.c362 ioc.sigstruct = (uint64_t)&encl->sigstruct; in encl_build()
/linux-6.15/arch/x86/kernel/cpu/sgx/
H A Dioctl.c514 if (sigstruct->body.attributes & sigstruct->body.attributes_mask & in sgx_encl_init()
518 if (sigstruct->body.miscselect & sigstruct->body.misc_mask & in sgx_encl_init()
522 if (sigstruct->body.xfrm & sigstruct->body.xfrm_mask & in sgx_encl_init()
546 ret = __einit(sigstruct, token, addr); in sgx_encl_init()
601 struct sgx_sigstruct *sigstruct; in sgx_ioc_enclave_init() local
619 if (!sigstruct) in sgx_ioc_enclave_init()
625 if (copy_from_user(sigstruct, (void __user *)init_arg.sigstruct, in sgx_ioc_enclave_init()
626 sizeof(*sigstruct))) { in sgx_ioc_enclave_init()
638 if (sigstruct->header.vendor != 0x0000 && in sgx_ioc_enclave_init()
639 sigstruct->header.vendor != 0x8086) { in sgx_ioc_enclave_init()
[all …]
H A Dvirt.c368 static int __sgx_virt_einit(void __user *sigstruct, void __user *token, in __sgx_virt_einit() argument
379 if (WARN_ON_ONCE(!access_ok(sigstruct, sizeof(struct sgx_sigstruct)) || in __sgx_virt_einit()
385 ret = __einit((void *)sigstruct, (void *)token, (void *)secs); in __sgx_virt_einit()
408 int sgx_virt_einit(void __user *sigstruct, void __user *token, in sgx_virt_einit() argument
414 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
420 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
H A Dencls.h161 static inline int __einit(void *sigstruct, void *token, void *secs) in __einit() argument
163 return __encls_ret_3(EINIT, sigstruct, secs, token); in __einit()
/linux-6.15/arch/x86/include/uapi/asm/
H A Dsgx.h73 __u64 sigstruct; member
/linux-6.15/arch/x86/include/asm/
H A Dsgx.h416 int sgx_virt_einit(void __user *sigstruct, void __user *token,