Home
last modified time | relevance | path

Searched refs:nameAlg (Results 1 – 25 of 124) sorted by relevance

12345

/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/
DObject_spt.c321 TPMI_ALG_HASH nameAlg // IN: in AdjustAuthSize() argument
328 digestSize = (nameAlg == TPM_ALG_NULL) ? sizeof(TPMU_HA) in AdjustAuthSize()
329 : CryptHashGetDigestSize(nameAlg); in AdjustAuthSize()
597 if(publicArea->nameAlg != parentObject->publicArea.nameAlg) in SchemeChecks()
637 if(publicArea->nameAlg == TPM_ALG_NULL) in PublicAttributesValidation()
643 != CryptHashGetDigestSize(publicArea->nameAlg)))) in PublicAttributesValidation()
750 outCreation->creationData.parentNameAlg = parentObject->publicArea.nameAlg; in FillInCreationData()
968 TPMI_ALG_HASH nameAlg // IN: in MarshalSensitive() argument
976 MemoryPad2B(&sensitive->authValue.b, CryptHashGetDigestSize(nameAlg)); in MarshalSensitive()
1021 TPM_ALG_ID nameAlg, // IN: hash algorithm in public area. This in SensitiveToPrivate() argument
[all …]
DObjectChangeAuth.c69 if(!AdjustAuthSize(&in->newAuth, object->publicArea.nameAlg)) in TPM2_ObjectChangeAuth()
76 object->publicArea.nameAlg, in TPM2_ObjectChangeAuth()
88 object->publicArea.nameAlg, in TPM2_ObjectChangeAuth()
DCreate.c127 if(!AdjustAuthSize(&in->inSensitive.sensitive.userAuth, publicArea->nameAlg)) in TPM2_Create()
136 FillInCreationData(in->parentHandle, publicArea->nameAlg, in TPM2_Create()
146 publicArea->nameAlg, in TPM2_Create()
DCreateLoaded.c123 if(!AdjustAuthSize(&in->inSensitive.sensitive.userAuth, publicArea->nameAlg)) in TPM2_CreateLoaded()
208 parent, newObject->publicArea.nameAlg, in TPM2_CreateLoaded()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/
DObject.c202 if(object == NULL || object->publicArea.nameAlg == TPM_ALG_NULL) in GetQualifiedName()
365 && object->publicArea.nameAlg != TPM_ALG_NULL) in ObjectSetLoadedAttributes()
374 ComputeQualifiedName(parentHandle, object->publicArea.nameAlg, in ObjectSetLoadedAttributes()
409 if(sensitive == NULL || publicArea->nameAlg == TPM_ALG_NULL) in ObjectLoad()
419 if(sensitive->seedValue.t.size > CryptHashGetDigestSize(publicArea->nameAlg)) in ObjectLoad()
501 object->nameAlg = TPM_ALG_NULL; in AllocateSequenceSlot()
793 TPM_ALG_ID nameAlg, // IN: the hash algorithm to use in ObjectComputeName() argument
798 name->t.size = CryptHashBlock(nameAlg, size, publicArea, in ObjectComputeName()
802 UINT16_TO_BYTE_ARRAY(nameAlg, name->t.name); in ObjectComputeName()
822 if(publicArea->nameAlg == TPM_ALG_NULL) in PublicMarshalAndComputeName()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/include/prototypes/
DObject_spt_fp.h50 TPMI_ALG_HASH nameAlg // IN:
215 TPM_ALG_ID nameAlg, // IN: hash algorithm in public area. This
241 TPM_ALG_ID nameAlg, // IN: hash algorithm in public area. It is
263 TPM_ALG_ID nameAlg, // IN: hash algorithm in public area. It
298 TPM_ALG_ID nameAlg, // IN: hash algorithm in public area.
DObject_fp.h287 TPM_ALG_ID nameAlg, // IN: the hash algorithm to use
304 TPM_ALG_ID nameAlg, // IN: name hash
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Duplication/
DRewrap.c93 oldParent->publicArea.nameAlg, &data.b, in TPM2_Rewrap()
100 CryptHashGetDigestSize(oldParent->publicArea.nameAlg); in TPM2_Rewrap()
129 CryptHashGetDigestSize(newParent->publicArea.nameAlg); in TPM2_Rewrap()
144 newParent->publicArea.nameAlg, in TPM2_Rewrap()
DDuplicate.c88 if(object->publicArea.nameAlg == TPM_ALG_NULL) in TPM2_Duplicate()
151 object->publicArea.nameAlg, &data.b, in TPM2_Duplicate()
DImport.c183 in->objectPublic.publicArea.nameAlg, in TPM2_Import()
203 in->objectPublic.publicArea.nameAlg, in TPM2_Import()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptUtil.c143 hashAlg = publicArea->nameAlg; in CryptGenerateKeyedHash()
537 data->t.size = CryptHashGetDigestSize(encryptKey->publicArea.nameAlg); in CryptSecretEncrypt()
540 scheme.details.anySig.hashAlg = encryptKey->publicArea.nameAlg; in CryptSecretEncrypt()
611 CryptKDFe(encryptKey->publicArea.nameAlg, &eccSecret.x.b, in CryptSecretEncrypt()
680 scheme.details.oaep.hashAlg = decryptKey->publicArea.nameAlg; in CryptSecretDecrypt()
726 CryptHashGetDigestSize(decryptKey->publicArea.nameAlg); in CryptSecretDecrypt()
741 CryptKDFe(decryptKey->publicArea.nameAlg, &eccSecret.x.b, label, in CryptSecretDecrypt()
756 CryptHashGetDigestSize(decryptKey->publicArea.nameAlg)) in CryptSecretDecrypt()
771 CryptXORObfuscation(decryptKey->publicArea.nameAlg, in CryptSecretDecrypt()
785 CryptHashGetDigestSize(decryptKey->publicArea.nameAlg)) in CryptSecretDecrypt()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/
DNV_Extend.c82 oldDigest.t.size = CryptHashGetDigestSize(nvIndex->publicArea.nameAlg); in TPM2_NV_Extend()
93 newDigest.t.size = CryptHashStart(&hashState, nvIndex->publicArea.nameAlg); in TPM2_NV_Extend()
DNV_DefineSpace.c65 nameSize = CryptHashGetDigestSize(in->publicInfo.nvPublic.nameAlg); in TPM2_NV_DefineSpace()
86 > CryptHashGetDigestSize(in->publicInfo.nvPublic.nameAlg)) in TPM2_NV_DefineSpace()
DNV_ChangeAuth.c60 > CryptHashGetDigestSize(nvIndex->publicArea.nameAlg)) in TPM2_NV_ChangeAuth()
/external/tpm2-tss/test/integration/
Desys-create-fail.int.c81 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_fail()
119 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_fail()
229 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_fail()
Dsapi-util.c61 in_public.publicArea.nameAlg = TPM2_ALG_SHA256; in create_primary_rsa_2048_aes_128_cfb()
111 .publicArea.nameAlg = TPM2_ALG_SHA256, in create_aes_128_cfb()
184 .publicArea.nameAlg = TPM2_ALG_SHA256, in create_keyedhash_key()
662 TPMI_ALG_HASH nameAlg, in DefineNvIndex() argument
670 .nameAlg = nameAlg, in DefineNvIndex()
Desys-create-policy-auth.int.c100 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_policy_auth()
136 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_policy_auth()
213 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_policy_auth()
Desys-create-password-auth.int.c86 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_password_auth()
124 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_password_auth()
229 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_password_auth()
Desys-save-and-load-context.int.c91 .nameAlg = TPM2_ALG_SHA256, in test_esys_save_and_load_context()
129 .nameAlg = TPM2_ALG_SHA256, in test_esys_save_and_load_context()
234 .nameAlg = TPM2_ALG_SHA256, in test_esys_save_and_load_context()
Desys-create-primary-hmac.int.c77 .nameAlg = TPM2_ALG_SHA1, in test_esys_create_primary_hmac()
119 .nameAlg = TPM2_ALG_SHA1, in test_esys_create_primary_hmac()
Desys-nv-certify.int.c80 .nameAlg = TPM2_ALG_SHA1, in test_esys_nv_certify()
149 .nameAlg = TPM2_ALG_SHA1, in test_esys_nv_certify()
Desys-create-session-auth.int.c104 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_session_auth()
141 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_session_auth()
342 .nameAlg = TPM2_ALG_SHA256, in test_esys_create_session_auth()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Hierarchy/
DCreatePrimary.c99 publicArea->nameAlg)) in TPM2_CreatePrimary()
130 FillInCreationData(in->primaryHandle, publicArea->nameAlg, in TPM2_CreatePrimary()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/
DEntity.c362 hashAlg = object->publicArea.nameAlg; in EntityGetAuthPolicy()
371 hashAlg = nvIndex->publicArea.nameAlg; in EntityGetAuthPolicy()
401 if(object->publicArea.nameAlg == TPM_ALG_NULL) in EntityGetName()
/external/tpm2-tss/test/unit/
Desys-crypto.c162 .nameAlg = TPM2_ALG_SHA1, in check_pk_encrypt()
193 inPublicRSA.publicArea.nameAlg = 0; in check_pk_encrypt()
197 inPublicRSA.publicArea.nameAlg = TPM2_ALG_SHA1; in check_pk_encrypt()

12345