Home
last modified time | relevance | path

Searched refs:TPM_ALG_NULL (Results 1 – 25 of 36) sorted by relevance

12

/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptEccData.c565 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
577 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
589 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
601 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
613 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
624 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
625 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
636 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
637 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
649 {TPM_ALG_NULL, {{TPM_ALG_NULL}}},
DCryptUtil.c91 || (signature->signature.hmac.hashAlg == TPM_ALG_NULL)) in CryptHMACVerifySignature()
98 if((keyScheme->scheme != TPM_ALG_NULL) in CryptHMACVerifySignature()
142 if(scheme->scheme == TPM_ALG_NULL) in CryptGenerateKeyedHash()
676 if(scheme.scheme == TPM_ALG_NULL) in CryptSecretDecrypt()
1126 if(auth->sigAlg == TPM_ALG_NULL) in CryptGetSignHashAlg()
1174 return TPM_ALG_NULL; in CryptGetSignHashAlg()
1347 scheme->scheme = TPM_ALG_NULL; in CryptSelectSignScheme()
1348 scheme->details.any.hashAlg = TPM_ALG_NULL; in CryptSelectSignScheme()
1369 if(objectScheme->scheme == TPM_ALG_NULL) in CryptSelectSignScheme()
1372 OK = (scheme->scheme != TPM_ALG_NULL); in CryptSelectSignScheme()
[all …]
DCryptHash.c124 if(hashAlg == TPM_ALG_NULL) in CryptHashIsValidAlg()
146 hashAlg = TPM_ALG_NULL; in CryptHashGetAlgByIndex()
216 if(in->hashAlg != TPM_ALG_NULL) in CryptHashCopyState()
264 if(internalFmt->hashAlg != TPM_ALG_NULL) in CryptHashExportState()
289 if(internalFmt->hashAlg != TPM_ALG_NULL) in CryptHashImportState()
323 if((hashState->hashAlg == TPM_ALG_NULL) in HashEnd()
368 if(hashAlg == TPM_ALG_NULL) in CryptHashStart()
393 if(hashState->hashAlg != TPM_ALG_NULL) in CryptDigestUpdate()
602 if(hState->hashAlg == TPM_ALG_NULL) in CryptHmacEnd()
849 if(hashAlg == TPM_ALG_NULL || bytes == 0) in CryptKDFe()
DAlgorithmTests.c98 pAssert(hashAlg != TPM_ALG_NULL); in TestHash()
363 CLEAR_BOTH(TPM_ALG_NULL); in TestRsaEncryptDecrypt()
364 if(scheme == TPM_ALG_NULL) in TestRsaEncryptDecrypt()
468 CLEAR_BOTH(TPM_ALG_NULL); in TestRsaSignAndVerify()
533 case TPM_ALG_NULL: in TestRsa()
888 result = TestRsa(TPM_ALG_NULL, toTest); in TestAlgorithm()
890 SET_BOTH(TPM_ALG_NULL); in TestAlgorithm()
896 case TPM_ALG_NULL: // used or RSADP in TestAlgorithm()
DCryptEccCrypt.c59 if(scheme->scheme == TPM_ALG_NULL) in CryptEccSelectScheme()
61 if(keyScheme->scheme == TPM_ALG_NULL) in CryptEccSelectScheme()
63 return (scheme->scheme != TPM_ALG_NULL && in CryptEccSelectScheme()
DCryptRsa.c966 if(keyScheme->scheme == TPM_ALG_NULL) in CryptRsaSelectScheme()
972 else if(scheme->scheme == TPM_ALG_NULL) in CryptRsaSelectScheme()
1011 TEST(TPM_ALG_NULL); in CryptRsaLoadPrivateExponent()
1090 case TPM_ALG_NULL: // 'raw' encryption in CryptRsaEncrypt()
1170 case TPM_ALG_NULL: in CryptRsaDecrypt()
1222 case TPM_ALG_NULL: in CryptRsaSign()
1393 TEST(TPM_ALG_NULL); in CryptRsaGenerateKey()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/HashHMAC/
DHMAC_Start.c79 if(publicArea->parameters.keyedHashDetail.scheme.scheme == TPM_ALG_NULL) in TPM2_HMAC_Start()
88 if(in->hashAlg != TPM_ALG_NULL && in->hashAlg != hashAlg) in TPM2_HMAC_Start()
89 hashAlg = TPM_ALG_NULL; in TPM2_HMAC_Start()
92 if(hashAlg == TPM_ALG_NULL) in TPM2_HMAC_Start()
DHashSequenceStart.c53 if(in->hashAlg == TPM_ALG_NULL) in TPM2_HashSequenceStart()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Symmetric/
DHMAC.c78 if(publicArea->parameters.keyedHashDetail.scheme.scheme == TPM_ALG_NULL) in TPM2_HMAC()
87 if(in->hashAlg != TPM_ALG_NULL && in->hashAlg != hashAlg) in TPM2_HMAC()
88 hashAlg = TPM_ALG_NULL; in TPM2_HMAC()
91 if(hashAlg == TPM_ALG_NULL) in TPM2_HMAC()
DEncryptDecrypt_spt.c95 if(mode != TPM_ALG_NULL) in EncryptDecryptShared()
98 if((modeIn != TPM_ALG_NULL) && (modeIn != mode)) in EncryptDecryptShared()
104 if(modeIn == TPM_ALG_NULL) in EncryptDecryptShared()
DEncryptDecrypt.c93 if(mode != TPM_ALG_NULL) in TPM2_EncryptDecrypt()
96 if((in->mode != TPM_ALG_NULL) && (in->mode != mode)) in TPM2_EncryptDecrypt()
102 if(in->mode == TPM_ALG_NULL) in TPM2_EncryptDecrypt()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/
DObject_spt.c328 digestSize = (nameAlg == TPM_ALG_NULL) ? sizeof(TPMU_HA) in AdjustAuthSize()
436 TPM_ALG_ID scheme = TPM_ALG_NULL; in SchemeChecks()
459 if(scheme != TPM_ALG_NULL) in SchemeChecks()
495 if(scheme != TPM_ALG_NULL) in SchemeChecks()
505 == TPM_ALG_NULL) in SchemeChecks()
514 || scheme != TPM_ALG_NULL) in SchemeChecks()
524 if(scheme != TPM_ALG_NULL) in SchemeChecks()
531 if(scheme != TPM_ALG_NULL && in SchemeChecks()
541 if(symAlgs->algorithm != TPM_ALG_NULL) in SchemeChecks()
558 if(curveScheme->scheme != TPM_ALG_NULL) in SchemeChecks()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Duplication/
DDuplicate.c88 if(object->publicArea.nameAlg == TPM_ALG_NULL) in TPM2_Duplicate()
101 if(in->symmetricAlg.algorithm == TPM_ALG_NULL) in TPM2_Duplicate()
107 if(in->symmetricAlg.algorithm == TPM_ALG_NULL) in TPM2_Duplicate()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/
DTableMarshalData.c219 {TPM_ALG_NULL,
226 {TPM_ALG_NULL,
232 {TPM_ALG_NULL,
238 {TPM_ALG_NULL,
244 {TPM_ALG_NULL,
250 {TPM_ALG_NULL,
256 {TPM_ALG_NULL,
263 {TPM_ALG_NULL,
271 {TPM_ALG_NULL,
279 {TPM_ALG_NULL,
[all …]
DEntity.c317 TPMI_ALG_HASH hashAlg = TPM_ALG_NULL; in EntityGetAuthPolicy()
401 if(object->publicArea.nameAlg == TPM_ALG_NULL) in EntityGetName()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/
DHierarchy.c76 gp.ownerAlg = TPM_ALG_NULL; in HierarchyPreInstall_Init()
78 gp.endorsementAlg = TPM_ALG_NULL; in HierarchyPreInstall_Init()
80 gp.lockoutAlg = TPM_ALG_NULL; in HierarchyPreInstall_Init()
129 gc.platformAlg = TPM_ALG_NULL; in HierarchyStartup()
DObject.c202 if(object == NULL || object->publicArea.nameAlg == TPM_ALG_NULL) in GetQualifiedName()
365 && object->publicArea.nameAlg != TPM_ALG_NULL) in ObjectSetLoadedAttributes()
409 if(sensitive == NULL || publicArea->nameAlg == TPM_ALG_NULL) in ObjectLoad()
498 object->type = TPM_ALG_NULL; in AllocateSequenceSlot()
501 object->nameAlg = TPM_ALG_NULL; in AllocateSequenceSlot()
603 for(count = 0; (hash = CryptHashGetAlgByIndex(count)) != TPM_ALG_NULL; count++) in ObjectCreateEventSequence()
629 for(count = 0; CryptHashGetAlgByIndex(count) != TPM_ALG_NULL; count++) in ObjectTerminateEvent()
822 if(publicArea->nameAlg == TPM_ALG_NULL) in PublicMarshalAndComputeName()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Hierarchy/
DChangePPS.c67 gc.platformAlg = TPM_ALG_NULL; in TPM2_ChangePPS()
84 gp.pcrPolicies.hashAlg[i] = TPM_ALG_NULL; in TPM2_ChangePPS()
DChangeEPS.c73 gp.endorsementAlg = TPM_ALG_NULL; in TPM2_ChangeEPS()
DClear.c82 gp.ownerAlg = gp.endorsementAlg = gp.lockoutAlg = TPM_ALG_NULL; in TPM2_Clear()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Asymmetric/
DZGen_2Phase.c78 if(scheme != TPM_ALG_NULL) in TPM2_ZGen_2Phase()
85 if(scheme == TPM_ALG_NULL) in TPM2_ZGen_2Phase()
DECDH_ZGen.c72 && eccKey->publicArea.parameters.eccDetail.scheme.scheme != TPM_ALG_NULL) in TPM2_ECDH_ZGen()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/CommandAudit/
DSetCommandCodeAuditStatus.c58 if(in->auditAlg != TPM_ALG_NULL && in->auditAlg != gp.auditHashAlg) in TPM2_SetCommandCodeAuditStatus()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Signature/
DVerifySignature.c75 || signObject->publicArea.nameAlg == TPM_ALG_NULL) in TPM2_VerifySignature()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Attestation/
DQuote.c81 if(hashAlg == TPM_ALG_NULL) in TPM2_Quote()

12