Searched refs:sigstruct (Results 1 – 9 of 9) sorted by relevance
/linux/tools/testing/selftests/sgx/ |
A D | sigstruct.c | 310 struct sgx_sigstruct *sigstruct = &encl->sigstruct; in encl_measure() local 318 memset(sigstruct, 0, sizeof(*sigstruct)); in encl_measure() 320 sigstruct->header.header1[0] = header1[0]; in encl_measure() 321 sigstruct->header.header1[1] = header1[1]; in encl_measure() 322 sigstruct->header.header2[0] = header2[0]; in encl_measure() 324 sigstruct->exponent = 3; in encl_measure() 326 sigstruct->body.xfrm = 3; in encl_measure() 357 memcpy(&payload.header, &sigstruct->header, sizeof(sigstruct->header)); in encl_measure() 358 memcpy(&payload.body, &sigstruct->body, sizeof(sigstruct->body)); in encl_measure() 366 if (!calc_q1q2(sigstruct->signature, sigstruct->modulus, sigstruct->q1, in encl_measure() [all …]
|
A D | Makefile | 27 $(OUTPUT)/sigstruct.o \ 38 $(OUTPUT)/sigstruct.o: sigstruct.c 55 $(OUTPUT)/sigstruct.o \
|
A D | main.h | 27 struct sgx_sigstruct sigstruct; member
|
A D | load.c | 297 ioc.sigstruct = (uint64_t)&encl->sigstruct; in encl_build()
|
/linux/arch/x86/kernel/cpu/sgx/ |
A D | ioctl.c | 518 if (sigstruct->body.attributes & sigstruct->body.attributes_mask & in sgx_encl_init() 522 if (sigstruct->body.miscselect & sigstruct->body.misc_mask & in sgx_encl_init() 526 if (sigstruct->body.xfrm & sigstruct->body.xfrm_mask & in sgx_encl_init() 550 ret = __einit(sigstruct, token, addr); in sgx_encl_init() 605 struct sgx_sigstruct *sigstruct; in sgx_ioc_enclave_init() local 623 if (!sigstruct) in sgx_ioc_enclave_init() 629 if (copy_from_user(sigstruct, (void __user *)init_arg.sigstruct, in sgx_ioc_enclave_init() 630 sizeof(*sigstruct))) { in sgx_ioc_enclave_init() 642 if (sigstruct->header.vendor != 0x0000 && in sgx_ioc_enclave_init() 643 sigstruct->header.vendor != 0x8086) { in sgx_ioc_enclave_init() [all …]
|
A D | virt.c | 365 static int __sgx_virt_einit(void __user *sigstruct, void __user *token, in __sgx_virt_einit() argument 376 if (WARN_ON_ONCE(!access_ok(sigstruct, sizeof(struct sgx_sigstruct)) || in __sgx_virt_einit() 382 ret = __einit((void *)sigstruct, (void *)token, (void *)secs); in __sgx_virt_einit() 405 int sgx_virt_einit(void __user *sigstruct, void __user *token, in sgx_virt_einit() argument 411 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit() 417 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
|
A D | encls.h | 180 static inline int __einit(void *sigstruct, void *token, void *secs) in __einit() argument 182 return __encls_ret_3(EINIT, sigstruct, secs, token); in __einit()
|
/linux/arch/x86/include/uapi/asm/ |
A D | sgx.h | 67 __u64 sigstruct; member
|
/linux/arch/x86/include/asm/ |
A D | sgx.h | 371 int sgx_virt_einit(void __user *sigstruct, void __user *token,
|
Completed in 12 milliseconds