Home
last modified time | relevance | path

Searched refs:SGX_MODULUS_SIZE (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/arch/x86/include/asm/
Dsgx.h83 #define SGX_MODULUS_SIZE 384 macro
370 u8 modulus[SGX_MODULUS_SIZE];
372 u8 signature[SGX_MODULUS_SIZE];
375 u8 q1[SGX_MODULUS_SIZE];
376 u8 q2[SGX_MODULUS_SIZE];
/linux-5.19.10/tools/testing/selftests/sgx/
Dsigstruct.c43 ctx->s = BN_bin2bn(s, SGX_MODULUS_SIZE, NULL); in alloc_q1q2_ctx()
44 ctx->m = BN_bin2bn(m, SGX_MODULUS_SIZE, NULL); in alloc_q1q2_ctx()
91 if (BN_num_bytes(ctx.q1) > SGX_MODULUS_SIZE) { in calc_q1q2()
103 if (BN_num_bytes(ctx.q2) > SGX_MODULUS_SIZE) { in calc_q1q2()
373 reverse_bytes(sigstruct->signature, SGX_MODULUS_SIZE); in encl_measure()
374 reverse_bytes(sigstruct->modulus, SGX_MODULUS_SIZE); in encl_measure()
/linux-5.19.10/arch/x86/kernel/cpu/sgx/
Dioctl.c477 return crypto_shash_digest(shash, modulus, SGX_MODULUS_SIZE, hash); in __sgx_get_key_hash()