/external/ms-tpm-20-ref/TPMCmd/tpm/include/ |
D | HandleProcess.h | 65 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; 68 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_2; 76 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; 84 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; 92 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; 104 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; 112 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; 115 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_2; 123 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; 131 if(TPM_RC_SUCCESS != result) return result + TPM_RC_H + TPM_RC_1; [all …]
|
D | NV.h | 143 if(g_NvStatus != TPM_RC_SUCCESS) \ 151 if(NvClearOrderly() != TPM_RC_SUCCESS) \ 155 #define NV_IS_AVAILABLE (g_NvStatus == TPM_RC_SUCCESS)
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/main/ |
D | ExecCommand.c | 149 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 155 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 172 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 204 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 209 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 219 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 239 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 249 if(result != TPM_RC_SUCCESS) in ExecuteCommand() 268 if(result != TPM_RC_SUCCESS) in ExecuteCommand()
|
D | SessionProcess.c | 683 if(UINT16_Unmarshal(&size, &pBuffer, &pSize) != TPM_RC_SUCCESS) in CompareTemplateHash() 695 if(UINT16_Unmarshal(&size, &pBuffer, &pSize) != TPM_RC_SUCCESS) in CompareTemplateHash() 760 return TPM_RC_SUCCESS; in CheckPWAuthSession() 947 return TPM_RC_SUCCESS; in CheckSessionHMAC() 1106 return TPM_RC_SUCCESS; in CheckPolicyAuthSession() 1154 if(result != TPM_RC_SUCCESS) in RetrieveSessionData() 1160 if(result != TPM_RC_SUCCESS) in RetrieveSessionData() 1166 if(result != TPM_RC_SUCCESS) in RetrieveSessionData() 1172 if(result != TPM_RC_SUCCESS) in RetrieveSessionData() 1274 return TPM_RC_SUCCESS; in RetrieveSessionData() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/ |
D | AlgorithmTests.c | 114 return TPM_RC_SUCCESS; in TestHash() 127 return TPM_RC_SUCCESS; in TestHash() 237 return TPM_RC_SUCCESS; in TestSymmetric() 299 return TPM_RC_SUCCESS; in TestSymmetric() 354 TPM_RC result = TPM_RC_SUCCESS; in TestRsaEncryptDecrypt() 369 if(TPM_RC_SUCCESS != CryptRsaEncrypt(&testOutput, &testInput.b, in TestRsaEncryptDecrypt() 375 if(TPM_RC_SUCCESS != CryptRsaDecrypt(&testOutput.b, &testInput.b, in TestRsaEncryptDecrypt() 414 if(TPM_RC_SUCCESS != CryptRsaEncrypt(&testOutput, &testInput.b, in TestRsaEncryptDecrypt() 420 if(TPM_RC_SUCCESS != CryptRsaDecrypt(&testOutput.b, &testInput.b, in TestRsaEncryptDecrypt() 431 if(TPM_RC_SUCCESS != CryptRsaDecrypt(&testOutput.b, &testInput.b, in TestRsaEncryptDecrypt() [all …]
|
D | CryptRsa.c | 301 != TPM_RC_SUCCESS) in RSADP() 307 return TPM_RC_SUCCESS; in RSADP() 337 TPM_RC retVal = TPM_RC_SUCCESS; in OaepEncode() 433 TPM_RC retVal = TPM_RC_SUCCESS; in OaepDecode() 488 if(retVal != TPM_RC_SUCCESS) in OaepDecode() 534 return TPM_RC_SUCCESS; in RSAES_PKCS1v1_5Encode() 571 return TPM_RC_SUCCESS; in RSAES_Decode() 664 return TPM_RC_SUCCESS; in PssEncode() 698 TPM_RC retVal = TPM_RC_SUCCESS; in PssDecode() 778 retVal = (fail != 0) ? TPM_RC_VALUE : TPM_RC_SUCCESS; in PssDecode() [all …]
|
D | CryptSelfTest.c | 69 if(result != TPM_RC_SUCCESS) in CryptRunSelfTests() 73 return TPM_RC_SUCCESS; in CryptRunSelfTests() 160 return TPM_RC_SUCCESS; in CryptIncrementalSelfTest() 219 result = TPM_RC_SUCCESS; in CryptTestAlgorithm()
|
D | CryptEccSignature.c | 106 return (BnEqualZero(bnS)) ? TPM_RC_NO_RESULT : TPM_RC_SUCCESS; in BnSchnorrSign() 130 TPM_RC retVal = TPM_RC_SUCCESS; in BnSignEcdsa() 270 if(retVal == TPM_RC_SUCCESS) in BnSignEcdaa() 484 return TPM_RC_SUCCESS; in BnSignEcSm2() 554 if(retVal == TPM_RC_SUCCESS) in CryptEccSign() 616 != TPM_RC_SUCCESS) in BnValidateSignatureEcdsa() 624 retVal = TPM_RC_SUCCESS; in BnValidateSignatureEcdsa() 694 return TPM_RC_SUCCESS; in BnValidateSignatureEcSm2() 732 OK = BnPointMult(ecE, CurveGetG(C), bnS, ecQ, bnRn, E) == TPM_RC_SUCCESS; in BnValidateSignatureEcSchnorr() 750 return (OK) ? TPM_RC_SUCCESS : TPM_RC_SIGNATURE; in BnValidateSignatureEcSchnorr() [all …]
|
D | CryptUtil.c | 68 return TPM_RC_SUCCESS; in CryptHmacSign() 114 return TPM_RC_SUCCESS; in CryptHMACVerifySignature() 182 return TPM_RC_SUCCESS; in CryptGenerateKeyedHash() 329 if(result == TPM_RC_SUCCESS) in CryptGenerateKeySymmetric() 349 result = TPM_RC_SUCCESS; in CryptGenerateKeySymmetric() 531 TPM_RC result = TPM_RC_SUCCESS; in CryptSecretEncrypt() 594 != TPM_RC_SUCCESS) in CryptSecretEncrypt() 660 TPM_RC result = TPM_RC_SUCCESS; in CryptSecretDecrypt() 700 if((result == TPM_RC_SUCCESS) && (data->t.size > digestSize)) in CryptSecretDecrypt() 715 if(result == TPM_RC_SUCCESS) in CryptSecretDecrypt() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/ |
D | Marshal.c | 53 return TPM_RC_SUCCESS; in UINT8_Unmarshal() 106 return TPM_RC_SUCCESS; in UINT16_Unmarshal() 145 return TPM_RC_SUCCESS; in UINT32_Unmarshal() 184 return TPM_RC_SUCCESS; in UINT64_Unmarshal() 311 if(result == TPM_RC_SUCCESS) in TPM_ECC_CURVE_Unmarshal() 369 if(result == TPM_RC_SUCCESS) in TPM_CLOCK_ADJUST_Unmarshal() 395 if(result == TPM_RC_SUCCESS) in TPM_EO_Unmarshal() 447 if(result == TPM_RC_SUCCESS) in TPM_SU_Unmarshal() 468 if(result == TPM_RC_SUCCESS) in TPM_SE_Unmarshal() 490 if(result == TPM_RC_SUCCESS) in TPM_CAP_Unmarshal() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/ |
D | CreateLoaded.c | 81 TPM_RC result = TPM_RC_SUCCESS; in TPM2_CreateLoaded() 119 if(result != TPM_RC_SUCCESS) in TPM2_CreateLoaded() 146 if(result != TPM_RC_SUCCESS) in TPM2_CreateLoaded() 151 if(result != TPM_RC_SUCCESS) in TPM2_CreateLoaded() 172 if(result != TPM_RC_SUCCESS) in TPM2_CreateLoaded() 189 if(result != TPM_RC_SUCCESS) in TPM2_CreateLoaded() 201 if(result != TPM_RC_SUCCESS) in TPM2_CreateLoaded()
|
D | ActivateCredential.c | 61 TPM_RC result = TPM_RC_SUCCESS; in TPM2_ActivateCredential() 87 if(result != TPM_RC_SUCCESS) in TPM2_ActivateCredential() 101 if(result != TPM_RC_SUCCESS) in TPM2_ActivateCredential() 104 return TPM_RC_SUCCESS; in TPM2_ActivateCredential()
|
D | Create.c | 93 TPM_RC result = TPM_RC_SUCCESS; in TPM2_Create() 124 if(result != TPM_RC_SUCCESS) in TPM2_Create() 133 if(result != TPM_RC_SUCCESS) in TPM2_Create() 152 return TPM_RC_SUCCESS; in TPM2_Create()
|
D | Object_spt.c | 300 if(result == TPM_RC_SUCCESS) in CheckInnerIntegrity() 369 TPM_RC result = TPM_RC_SUCCESS; in CreateChecks() 409 if(TPM_RC_SUCCESS == result) in CreateChecks() 604 return TPM_RC_SUCCESS; in SchemeChecks() 921 if(result == TPM_RC_SUCCESS) in UnwrapOuter() 937 if(result == TPM_RC_SUCCESS) in UnwrapOuter() 951 if(result == TPM_RC_SUCCESS) in UnwrapOuter() 1122 if(result != TPM_RC_SUCCESS) in PrivateToSensitive() 1138 if(result == TPM_RC_SUCCESS) in PrivateToSensitive() 1146 if(result != TPM_RC_SUCCESS || size != 0) in PrivateToSensitive() [all …]
|
D | MakeCredential.c | 58 TPM_RC result = TPM_RC_SUCCESS; in TPM2_MakeCredential() 86 if(result != TPM_RC_SUCCESS) in TPM2_MakeCredential() 93 return TPM_RC_SUCCESS; in TPM2_MakeCredential()
|
D | Load.c | 73 TPM_RC result = TPM_RC_SUCCESS; in TPM2_Load() 103 if(result != TPM_RC_SUCCESS) in TPM2_Load() 112 if(result == TPM_RC_SUCCESS) in TPM2_Load()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Duplication/ |
D | Rewrap.c | 67 TPM_RC result = TPM_RC_SUCCESS; in TPM2_Rewrap() 89 if(result != TPM_RC_SUCCESS) in TPM2_Rewrap() 96 if(result != TPM_RC_SUCCESS) in TPM2_Rewrap() 125 if(result != TPM_RC_SUCCESS) in TPM2_Rewrap() 157 return TPM_RC_SUCCESS; in TPM2_Rewrap()
|
D | Import.c | 108 TPM_RC result = TPM_RC_SUCCESS; in TPM2_Import() 164 if(result != TPM_RC_SUCCESS) in TPM2_Import() 186 if(result != TPM_RC_SUCCESS) in TPM2_Import() 199 if(result == TPM_RC_SUCCESS) in TPM2_Import()
|
D | Duplicate.c | 67 TPM_RC result = TPM_RC_SUCCESS; in TPM2_Duplicate() 133 if(result != TPM_RC_SUCCESS) in TPM2_Duplicate() 157 return TPM_RC_SUCCESS; in TPM2_Duplicate()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Hierarchy/ |
D | CreatePrimary.c | 73 TPM_RC result = TPM_RC_SUCCESS; in TPM2_CreatePrimary() 95 if(result != TPM_RC_SUCCESS) in TPM2_CreatePrimary() 112 if(result == TPM_RC_SUCCESS) in TPM2_CreatePrimary() 122 if(result != TPM_RC_SUCCESS) in TPM2_CreatePrimary()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/EA/ |
D | PolicySigned.c | 60 TPM_RC result = TPM_RC_SUCCESS; in TPM2_PolicySigned() 80 if(result != TPM_RC_SUCCESS) in TPM2_PolicySigned() 128 if(result != TPM_RC_SUCCESS) in TPM2_PolicySigned() 177 return TPM_RC_SUCCESS; in TPM2_PolicySigned()
|
D | PolicyAuthorizeNV.c | 79 if(result != TPM_RC_SUCCESS) in TPM2_PolicyAuthorizeNV() 91 if(result != TPM_RC_SUCCESS) in TPM2_PolicyAuthorizeNV() 114 return TPM_RC_SUCCESS; in TPM2_PolicyAuthorizeNV()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/ |
D | NV_spt.c | 88 return TPM_RC_SUCCESS; in NvReadAccessChecks() 129 return TPM_RC_SUCCESS; in NvWriteAccessChecks() 143 return TPM_RC_SUCCESS; in NvClearOrderly()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/ |
D | NvDynamic.c | 331 return TPM_RC_SUCCESS; in NvAdd() 378 return TPM_RC_SUCCESS; in NvDelete() 661 if(g_NvStatus == TPM_RC_SUCCESS) in NvConditionallyWrite() 667 return TPM_RC_SUCCESS; in NvConditionallyWrite() 809 return TPM_RC_SUCCESS; in NvIndexIsAccessible() 823 return TPM_RC_SUCCESS; in NvIndexIsAccessible() 851 return TPM_RC_SUCCESS; in NvGetEvictObject() 985 result = TPM_RC_SUCCESS; in NvWriteIndexAttributes() 1080 TPM_RC result = TPM_RC_SUCCESS; in NvWriteIndexData() 1104 if(result != TPM_RC_SUCCESS) in NvWriteIndexData() [all …]
|
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/VCOM/VCOM-TPM/ |
D | VCOM-TPM.cpp | 10 #ifndef TPM_RC_SUCCESS 11 #define TPM_RC_SUCCESS 0 160 UINT32 result = TPM_RC_SUCCESS; 196 …tartupClear, sizeof(startupClear), response, sizeof(response), &responseSize) == TPM_RC_SUCCESS) && 207 …tdownClear, sizeof(shutdownClear), response, sizeof(response), &responseSize) == TPM_RC_SUCCESS) &&
|