/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/ |
D | Object_spt.c | 321 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 …]
|
D | ObjectChangeAuth.c | 69 if(!AdjustAuthSize(&in->newAuth, object->publicArea.nameAlg)) in TPM2_ObjectChangeAuth() 76 object->publicArea.nameAlg, in TPM2_ObjectChangeAuth() 88 object->publicArea.nameAlg, in TPM2_ObjectChangeAuth()
|
D | Create.c | 127 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()
|
D | CreateLoaded.c | 123 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/ |
D | Object.c | 202 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/ |
D | Object_spt_fp.h | 50 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.
|
D | Object_fp.h | 287 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/ |
D | Rewrap.c | 93 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()
|
D | Duplicate.c | 88 if(object->publicArea.nameAlg == TPM_ALG_NULL) in TPM2_Duplicate() 151 object->publicArea.nameAlg, &data.b, in TPM2_Duplicate()
|
D | Import.c | 183 in->objectPublic.publicArea.nameAlg, in TPM2_Import() 203 in->objectPublic.publicArea.nameAlg, in TPM2_Import()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/ |
D | CryptUtil.c | 143 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/ |
D | NV_Extend.c | 82 oldDigest.t.size = CryptHashGetDigestSize(nvIndex->publicArea.nameAlg); in TPM2_NV_Extend() 93 newDigest.t.size = CryptHashStart(&hashState, nvIndex->publicArea.nameAlg); in TPM2_NV_Extend()
|
D | NV_DefineSpace.c | 65 nameSize = CryptHashGetDigestSize(in->publicInfo.nvPublic.nameAlg); in TPM2_NV_DefineSpace() 86 > CryptHashGetDigestSize(in->publicInfo.nvPublic.nameAlg)) in TPM2_NV_DefineSpace()
|
D | NV_ChangeAuth.c | 60 > CryptHashGetDigestSize(nvIndex->publicArea.nameAlg)) in TPM2_NV_ChangeAuth()
|
/external/tpm2-tss/test/integration/ |
D | esys-create-fail.int.c | 81 .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()
|
D | sapi-util.c | 61 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()
|
D | esys-create-policy-auth.int.c | 100 .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()
|
D | esys-create-password-auth.int.c | 86 .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()
|
D | esys-save-and-load-context.int.c | 91 .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()
|
D | esys-create-primary-hmac.int.c | 77 .nameAlg = TPM2_ALG_SHA1, in test_esys_create_primary_hmac() 119 .nameAlg = TPM2_ALG_SHA1, in test_esys_create_primary_hmac()
|
D | esys-nv-certify.int.c | 80 .nameAlg = TPM2_ALG_SHA1, in test_esys_nv_certify() 149 .nameAlg = TPM2_ALG_SHA1, in test_esys_nv_certify()
|
D | esys-create-session-auth.int.c | 104 .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/ |
D | CreatePrimary.c | 99 publicArea->nameAlg)) in TPM2_CreatePrimary() 130 FillInCreationData(in->primaryHandle, publicArea->nameAlg, in TPM2_CreatePrimary()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/ |
D | Entity.c | 362 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/ |
D | esys-crypto.c | 162 .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()
|