Home
last modified time | relevance | path

Searched refs:authPolicy (Results 1 – 25 of 99) sorted by relevance

1234

/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Hierarchy/
DSetPrimaryPolicy.c55 if(in->authPolicy.t.size != CryptHashGetDigestSize(in->hashAlg)) in TPM2_SetPrimaryPolicy()
71 gp.ownerPolicy = in->authPolicy; in TPM2_SetPrimaryPolicy()
77 gp.endorsementPolicy = in->authPolicy; in TPM2_SetPrimaryPolicy()
83 gc.platformPolicy = in->authPolicy; in TPM2_SetPrimaryPolicy()
89 gp.lockoutPolicy = in->authPolicy; in TPM2_SetPrimaryPolicy()
97 go.ACT_##N.authPolicy = in->authPolicy; \ in TPM2_SetPrimaryPolicy()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/
DEntity.c314 TPM2B_DIGEST *authPolicy // OUT: authPolicy of the entity in EntityGetAuthPolicy() argument
318 authPolicy->t.size = 0; in EntityGetAuthPolicy()
327 *authPolicy = gp.ownerPolicy; in EntityGetAuthPolicy()
332 *authPolicy = gp.endorsementPolicy; in EntityGetAuthPolicy()
337 *authPolicy = gc.platformPolicy; in EntityGetAuthPolicy()
342 *authPolicy = gp.lockoutPolicy; in EntityGetAuthPolicy()
347 *authPolicy = go.ACT_##N.authPolicy; \ in EntityGetAuthPolicy()
361 *authPolicy = object->publicArea.authPolicy; in EntityGetAuthPolicy()
370 *authPolicy = nvIndex->publicArea.authPolicy; in EntityGetAuthPolicy()
376 hashAlg = PCRGetAuthPolicy(handle, authPolicy); in EntityGetAuthPolicy()
/external/tpm2-tss/test/integration/
Dsapi-hmac-auth.int.c34 TPM2B_DIGEST *authPolicy) in create_policy() argument
77 authPolicy, in create_policy()
98 const TPM2B_DIGEST *authPolicy, in nv_rw_with_session() argument
153 authPolicy, in nv_rw_with_session()
411 TPM2B_DIGEST authPolicy = { 0, }; in test_invoke() local
416 rc = nv_rw_with_session (sys_ctx, &authPolicy, nvAttributes, TPM2_SE_HMAC); in test_invoke()
421 authPolicy.size = TPM2B_SIZE (authPolicy); in test_invoke()
422 rc = create_policy (sys_ctx, &authPolicy); in test_invoke()
426 rc = nv_rw_with_session (sys_ctx, &authPolicy, nvAttributes, TPM2_SE_POLICY); in test_invoke()
Desys-pcr-auth-value.int.c73 TPM2B_DIGEST authPolicy = { in test_esys_pcr_auth_value() local
85 &authPolicy, in test_esys_pcr_auth_value()
Desys-create-fail.int.c88 .authPolicy = { in test_esys_create_fail()
126 .authPolicy = { in test_esys_create_fail()
237 .authPolicy = { in test_esys_create_fail()
Desys-create-policy-auth.int.c107 .authPolicy = *trialDigest, in test_esys_create_policy_auth()
143 .authPolicy = *trialDigest, in test_esys_create_policy_auth()
221 .authPolicy = { in test_esys_create_policy_auth()
Desys-create-password-auth.int.c93 .authPolicy = { in test_esys_create_password_auth()
131 .authPolicy = { in test_esys_create_password_auth()
237 .authPolicy = { in test_esys_create_password_auth()
Desys-save-and-load-context.int.c98 .authPolicy = { in test_esys_save_and_load_context()
136 .authPolicy = { in test_esys_save_and_load_context()
242 .authPolicy = { in test_esys_save_and_load_context()
Dsapi-policy-authorizeNV.int.c90 nv_public.nvPublic.authPolicy.size = 0; in test_invoke()
162 memcpy(in_public.authPolicy.buffer, auth, TPM2_SHA256_DIGEST_SIZE); in test_invoke()
174 in_public.authPolicy.size = TPM2_SHA256_DIGEST_SIZE; in test_invoke()
Desys-create-primary-hmac.int.c84 .authPolicy = { in test_esys_create_primary_hmac()
126 .authPolicy = { in test_esys_create_primary_hmac()
Desys-policy-regression.int.c176 .authPolicy = { in test_esys_policy_regression()
440 TPM2B_DIGEST authPolicy = { in test_esys_policy_regression() local
450 &authPolicy, in test_esys_policy_regression()
Desys-nv-certify.int.c89 .authPolicy = { in test_esys_nv_certify()
158 .authPolicy = { in test_esys_nv_certify()
Dsapi-nv-policy-locality.int.c97 .authPolicy = { .size = GetDigestSize (TPM2_ALG_SHA1), }, in setup_nv()
123 memcpy (public_info.nvPublic.authPolicy.buffer, in setup_nv()
Desys-duplicate.int.c162 .authPolicy = { in test_esys_duplicate()
264 .authPolicy = { in test_esys_duplicate()
298 inPublic2.publicArea.authPolicy = *policyDigestTrial; in test_esys_duplicate()
Desys-create-session-auth.int.c110 .authPolicy = { in test_esys_create_session_auth()
148 .authPolicy = { in test_esys_create_session_auth()
350 .authPolicy = { in test_esys_create_session_auth()
/external/tpm2-tss/src/tss2-sys/api/
DTss2_Sys_SetPrimaryPolicy.c18 const TPM2B_DIGEST *authPolicy, in Tss2_Sys_SetPrimaryPolicy_Prepare() argument
40 if (!authPolicy) { in Tss2_Sys_SetPrimaryPolicy_Prepare()
48 rval = Tss2_MU_TPM2B_DIGEST_Marshal(authPolicy, ctx->cmdBuffer, in Tss2_Sys_SetPrimaryPolicy_Prepare()
84 const TPM2B_DIGEST *authPolicy, in Tss2_Sys_SetPrimaryPolicy() argument
91 rval = Tss2_Sys_SetPrimaryPolicy_Prepare(sysContext, authHandle, authPolicy, hashAlg); in Tss2_Sys_SetPrimaryPolicy()
DTss2_Sys_PCR_SetAuthPolicy.c18 const TPM2B_DIGEST *authPolicy, in Tss2_Sys_PCR_SetAuthPolicy_Prepare() argument
41 if (!authPolicy) { in Tss2_Sys_PCR_SetAuthPolicy_Prepare()
49 rval = Tss2_MU_TPM2B_DIGEST_Marshal(authPolicy, ctx->cmdBuffer, in Tss2_Sys_PCR_SetAuthPolicy_Prepare()
91 const TPM2B_DIGEST *authPolicy, in Tss2_Sys_PCR_SetAuthPolicy() argument
99 rval = Tss2_Sys_PCR_SetAuthPolicy_Prepare(sysContext, authHandle, authPolicy, hashAlg, pcrNum); in Tss2_Sys_PCR_SetAuthPolicy()
/external/tpm2-tss/src/tss2-esys/api/
DEsys_PCR_SetAuthPolicy.c70 const TPM2B_DIGEST *authPolicy, in Esys_PCR_SetAuthPolicy() argument
77 shandle3, authPolicy, hashAlg, pcrNum); in Esys_PCR_SetAuthPolicy()
147 const TPM2B_DIGEST *authPolicy, in Esys_PCR_SetAuthPolicy_Async() argument
154 esysContext, authHandle, authPolicy, hashAlg, pcrNum); in Esys_PCR_SetAuthPolicy_Async()
181 authPolicy, hashAlg, pcrNum); in Esys_PCR_SetAuthPolicy_Async()
DEsys_SetPrimaryPolicy.c71 const TPM2B_DIGEST *authPolicy, in Esys_SetPrimaryPolicy() argument
77 shandle3, authPolicy, hashAlg); in Esys_SetPrimaryPolicy()
148 const TPM2B_DIGEST *authPolicy, in Esys_SetPrimaryPolicy_Async() argument
154 esysContext, authHandle, authPolicy, hashAlg); in Esys_SetPrimaryPolicy_Async()
180 authPolicy, hashAlg); in Esys_SetPrimaryPolicy_Async()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/PCR/
DPCR_SetAuthPolicy.c63 if(in->authPolicy.t.size != CryptHashGetDigestSize(in->hashAlg)) in TPM2_PCR_SetAuthPolicy()
74 gp.pcrPolicies.policy[groupIndex] = in->authPolicy; in TPM2_PCR_SetAuthPolicy()
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_CreateNv.c278 TPM2B_DIGEST * authPolicy = &(miscNv->public.nvPublic.authPolicy); in Fapi_CreateNv_Finish() local
351 authPolicy->size = in Fapi_CreateNv_Finish()
353 memcpy(&authPolicy->buffer[0], in Fapi_CreateNv_Finish()
357 &authPolicy->buffer[0], in Fapi_CreateNv_Finish()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/
DNV_DefineSpace.c80 if(in->publicInfo.nvPublic.authPolicy.t.size != 0 in TPM2_NV_DefineSpace()
81 && in->publicInfo.nvPublic.authPolicy.t.size != nameSize) in TPM2_NV_DefineSpace()
/external/ms-tpm-20-ref/TPMCmd/tpm/include/prototypes/
DSetPrimaryPolicy_fp.h48 TPM2B_DIGEST authPolicy; member
DEntity_fp.h86 TPM2B_DIGEST *authPolicy // OUT: authPolicy of the entity
DPCR_SetAuthPolicy_fp.h48 TPM2B_DIGEST authPolicy; member

1234