Searched refs:sigstruct (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/testing/selftests/sgx/ |
| H A D | sigstruct.c | 318 struct sgx_sigstruct *sigstruct = &encl->sigstruct; in encl_measure() 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() 331 sigstruct->header.header2[1] = header2[1]; in encl_measure() 332 sigstruct->exponent = 3; in encl_measure() 333 sigstruct in encl_measure() 317 struct sgx_sigstruct *sigstruct = &encl->sigstruct; encl_measure() local [all...] |
| H A D | Makefile | 30 $(OUTPUT)/sigstruct.o \ 41 $(OUTPUT)/sigstruct.o: sigstruct.c 58 $(OUTPUT)/sigstruct.o \
|
| H A D | main.h | 31 struct sgx_sigstruct sigstruct; member
|
| H A D | load.c | 362 ioc.sigstruct = (uint64_t)&encl->sigstruct; in encl_build()
|
| /linux/arch/x86/kernel/cpu/sgx/ |
| H A D | ioctl.c | 467 static int sgx_encl_init(struct sgx_encl *encl, struct sgx_sigstruct *sigstruct, in sgx_encl_init() argument 490 if (sigstruct->body.attributes & sigstruct->body.attributes_mask & in sgx_encl_init() 494 if (sigstruct->body.miscselect & sigstruct->body.misc_mask & in sgx_encl_init() 498 if (sigstruct->body.xfrm & sigstruct->body.xfrm_mask & in sgx_encl_init() 502 sha256(sigstruct->modulus, SGX_MODULUS_SIZE, (u8 *)mrsigner); in sgx_encl_init() 520 ret = __einit(sigstruct, token, addr); in sgx_encl_init() 575 struct sgx_sigstruct *sigstruct; in sgx_ioc_enclave_init() local 592 sigstruct = kmalloc(PAGE_SIZE, GFP_KERNEL); in sgx_ioc_enclave_init() 593 if (!sigstruct) in sgx_ioc_enclave_init() 596 token = (void *)((unsigned long)sigstruct + PAGE_SIZE / 2); in sgx_ioc_enclave_init() [all …]
|
| H A D | virt.c | 387 static int __sgx_virt_einit(void __user *sigstruct, void __user *token, in __sgx_virt_einit() argument 398 if (WARN_ON_ONCE(!access_ok(sigstruct, sizeof(struct sgx_sigstruct)) || in __sgx_virt_einit() 404 ret = __einit((void *)sigstruct, (void *)token, (void *)secs); in __sgx_virt_einit() 427 int sgx_virt_einit(void __user *sigstruct, void __user *token, in sgx_virt_einit() argument 433 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit() 439 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
|