Disable algorithms ECDAA, ECSCHNORR, and SM2 (take 2).

Disable optional algorithms that are currently
unimplemented in EMBEDDED_MODE.  This will allow
the TPM2 suite to run the appropriate sub-set of tests.

A previous attempt (7709a63d45f6f7822) at this change
broke the android build, which does not allow undefined
symbols in libraries.

TEST=compilation succeeds
BRANCH=none
BUG=chrome-os-partner:43025,chrome-os-partner:47524

Change-Id: Ibc69b8ad36b2e00baa5a440a388345b65ba960a3
Signed-off-by: nagendra modadugu <ngm@google.com>
Reviewed-on: https://chromium-review.googlesource.com/331670
Commit-Ready: Nagendra Modadugu <ngm@google.com>
Tested-by: Nagendra Modadugu <ngm@google.com>
Tested-by: Darren Krahn <dkrahn@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
3 files changed
tree: ce48901f4cb8e16173572d3d4e335312cf36fd50
  1. .gitignore
  2. ActivateCredential.c
  3. ActivateCredential_fp.h
  4. AlgorithmCap.c
  5. AlgorithmCap_fp.h
  6. Attest_spt.c
  7. Attest_spt_fp.h
  8. BaseTypes.h
  9. Bits.c
  10. Bits_fp.h
  11. COMMIT-QUEUE.ini
  12. Cancel.c
  13. Capabilities.h
  14. Certify.c
  15. CertifyCreation.c
  16. CertifyCreation_fp.h
  17. Certify_fp.h
  18. ChangeEPS.c
  19. ChangeEPS_fp.h
  20. ChangePPS.c
  21. ChangePPS_fp.h
  22. Clear.c
  23. ClearControl.c
  24. ClearControl_fp.h
  25. Clear_fp.h
  26. Clock.c
  27. ClockRateAdjust.c
  28. ClockRateAdjust_fp.h
  29. ClockSet.c
  30. ClockSet_fp.h
  31. CommandAttributeData.c
  32. CommandAudit.c
  33. CommandAudit_fp.h
  34. CommandCodeAttributes.c
  35. CommandCodeAttributes_fp.h
  36. CommandDispatcher.c
  37. CommandDispatcher_fp.h
  38. Commands_fp.h
  39. Commit.c
  40. Commit_fp.h
  41. ContextLoad.c
  42. ContextLoad_fp.h
  43. ContextSave.c
  44. ContextSave_fp.h
  45. Context_spt.c
  46. Context_spt_fp.h
  47. CpriCryptPri.c
  48. CpriCryptPri_fp.h
  49. CpriDataEcc.c
  50. CpriDataEcc.h
  51. CpriECC.c
  52. CpriECC_fp.h
  53. CpriHash.c
  54. CpriHashData.c
  55. CpriHash_fp.h
  56. CpriMisc.c
  57. CpriMisc_fp.h
  58. CpriRNG.c
  59. CpriRNG_fp.h
  60. CpriRSA.c
  61. CpriRSA_fp.h
  62. CpriSym.c
  63. CpriSym_fp.h
  64. Create.c
  65. CreatePrimary.c
  66. CreatePrimary_fp.h
  67. Create_fp.h
  68. CryptSelfTest.c
  69. CryptSelfTest_fp.h
  70. CryptUtil.c
  71. CryptUtil_fp.h
  72. CryptoEngine.h
  73. DA.c
  74. DA_fp.h
  75. DRTM.c
  76. DictionaryAttackLockReset.c
  77. DictionaryAttackLockReset_fp.h
  78. DictionaryAttackParameters.c
  79. DictionaryAttackParameters_fp.h
  80. Duplicate.c
  81. Duplicate_fp.h
  82. ECC_Parameters.c
  83. ECC_Parameters_fp.h
  84. ECDH_KeyGen.c
  85. ECDH_KeyGen_fp.h
  86. ECDH_ZGen.c
  87. ECDH_ZGen_fp.h
  88. EC_Ephemeral.c
  89. EC_Ephemeral_fp.h
  90. EncryptDecrypt.c
  91. EncryptDecrypt_fp.h
  92. Entity.c
  93. Entity_fp.h
  94. Entropy.c
  95. EventSequenceComplete.c
  96. EventSequenceComplete_fp.h
  97. EvictControl.c
  98. EvictControl_fp.h
  99. ExecCommand.c
  100. ExecCommand_fp.h
  101. FieldUpgradeData.c
  102. FieldUpgradeData_fp.h
  103. FieldUpgradeStart.c
  104. FieldUpgradeStart_fp.h
  105. FirmwareRead.c
  106. FirmwareRead_fp.h
  107. FlushContext.c
  108. FlushContext_fp.h
  109. GetCapability.c
  110. GetCapability_fp.h
  111. GetCommandAuditDigest.c
  112. GetCommandAuditDigest_fp.h
  113. GetCommandCodeString.c
  114. GetCommandCodeString_fp.h
  115. GetRandom.c
  116. GetRandom_fp.h
  117. GetSessionAuditDigest.c
  118. GetSessionAuditDigest_fp.h
  119. GetTestResult.c
  120. GetTestResult_fp.h
  121. GetTime.c
  122. GetTime_fp.h
  123. Global.c
  124. Global.h
  125. HMAC.c
  126. HMAC_Start.c
  127. HMAC_Start_fp.h
  128. HMAC_fp.h
  129. Handle.c
  130. HandleProcess.c
  131. HandleProcess_fp.h
  132. Handle_fp.h
  133. Hash.c
  134. HashSequenceStart.c
  135. HashSequenceStart_fp.h
  136. Hash_fp.h
  137. Hierarchy.c
  138. HierarchyChangeAuth.c
  139. HierarchyChangeAuth_fp.h
  140. HierarchyControl.c
  141. HierarchyControl_fp.h
  142. Hierarchy_fp.h
  143. Implementation.h
  144. Import.c
  145. Import_fp.h
  146. IncrementalSelfTest.c
  147. IncrementalSelfTest_fp.h
  148. InternalRoutines.h
  149. LICENSE
  150. Load.c
  151. LoadExternal.c
  152. LoadExternal_fp.h
  153. Load_fp.h
  154. Locality.c
  155. LocalityPlat.c
  156. Locality_fp.h
  157. MakeCredential.c
  158. MakeCredential_fp.h
  159. Makefile
  160. Manufacture.c
  161. Manufacture_fp.h
  162. Marshal_ActivateCredential.c
  163. Marshal_Certify.c
  164. Marshal_CertifyCreation.c
  165. Marshal_ChangeEPS.c
  166. Marshal_ChangePPS.c
  167. Marshal_Clear.c
  168. Marshal_ClearControl.c
  169. Marshal_ClockRateAdjust.c
  170. Marshal_ClockSet.c
  171. Marshal_Commit.c
  172. Marshal_ContextLoad.c
  173. Marshal_ContextSave.c
  174. Marshal_Create.c
  175. Marshal_CreatePrimary.c
  176. Marshal_DictionaryAttackLockReset.c
  177. Marshal_DictionaryAttackParameters.c
  178. Marshal_Duplicate.c
  179. Marshal_ECC_Parameters.c
  180. Marshal_ECDH_KeyGen.c
  181. Marshal_ECDH_ZGen.c
  182. Marshal_EC_Ephemeral.c
  183. Marshal_EncryptDecrypt.c
  184. Marshal_EventSequenceComplete.c
  185. Marshal_EvictControl.c
  186. Marshal_FieldUpgradeData.c
  187. Marshal_FieldUpgradeStart.c
  188. Marshal_FirmwareRead.c
  189. Marshal_FlushContext.c
  190. Marshal_GetCapability.c
  191. Marshal_GetCommandAuditDigest.c
  192. Marshal_GetRandom.c
  193. Marshal_GetSessionAuditDigest.c
  194. Marshal_GetTestResult.c
  195. Marshal_GetTime.c
  196. Marshal_HMAC.c
  197. Marshal_HMAC_Start.c
  198. Marshal_Hash.c
  199. Marshal_HashSequenceStart.c
  200. Marshal_HierarchyChangeAuth.c
  201. Marshal_HierarchyControl.c
  202. Marshal_Import.c
  203. Marshal_IncrementalSelfTest.c
  204. Marshal_Load.c
  205. Marshal_LoadExternal.c
  206. Marshal_MakeCredential.c
  207. Marshal_NV_Certify.c
  208. Marshal_NV_ChangeAuth.c
  209. Marshal_NV_DefineSpace.c
  210. Marshal_NV_Extend.c
  211. Marshal_NV_GlobalWriteLock.c
  212. Marshal_NV_Increment.c
  213. Marshal_NV_Read.c
  214. Marshal_NV_ReadLock.c
  215. Marshal_NV_ReadPublic.c
  216. Marshal_NV_SetBits.c
  217. Marshal_NV_UndefineSpace.c
  218. Marshal_NV_UndefineSpaceSpecial.c
  219. Marshal_NV_Write.c
  220. Marshal_NV_WriteLock.c
  221. Marshal_ObjectChangeAuth.c
  222. Marshal_PCR_Allocate.c
  223. Marshal_PCR_Event.c
  224. Marshal_PCR_Extend.c
  225. Marshal_PCR_Read.c
  226. Marshal_PCR_Reset.c
  227. Marshal_PCR_SetAuthPolicy.c
  228. Marshal_PCR_SetAuthValue.c
  229. Marshal_PP_Commands.c
  230. Marshal_PolicyAuthValue.c
  231. Marshal_PolicyAuthorize.c
  232. Marshal_PolicyCommandCode.c
  233. Marshal_PolicyCounterTimer.c
  234. Marshal_PolicyCpHash.c
  235. Marshal_PolicyDuplicationSelect.c
  236. Marshal_PolicyGetDigest.c
  237. Marshal_PolicyLocality.c
  238. Marshal_PolicyNV.c
  239. Marshal_PolicyNameHash.c
  240. Marshal_PolicyNvWritten.c
  241. Marshal_PolicyOR.c
  242. Marshal_PolicyPCR.c
  243. Marshal_PolicyPassword.c
  244. Marshal_PolicyPhysicalPresence.c
  245. Marshal_PolicyRestart.c
  246. Marshal_PolicySecret.c
  247. Marshal_PolicySigned.c
  248. Marshal_PolicyTicket.c
  249. Marshal_Quote.c
  250. Marshal_RSA_Decrypt.c
  251. Marshal_RSA_Encrypt.c
  252. Marshal_ReadClock.c
  253. Marshal_ReadPublic.c
  254. Marshal_Rewrap.c
  255. Marshal_SelfTest.c
  256. Marshal_SequenceComplete.c
  257. Marshal_SequenceUpdate.c
  258. Marshal_SetAlgorithmSet.c
  259. Marshal_SetCommandCodeAuditStatus.c
  260. Marshal_SetPrimaryPolicy.c
  261. Marshal_Shutdown.c
  262. Marshal_Sign.c
  263. Marshal_StartAuthSession.c
  264. Marshal_Startup.c
  265. Marshal_StirRandom.c
  266. Marshal_TestParms.c
  267. Marshal_Unseal.c
  268. Marshal_VerifySignature.c
  269. Marshal_ZGen_2Phase.c
  270. MathFunctions.c
  271. MathFunctions_fp.h
  272. MemoryLib.c
  273. MemoryLib_fp.h
  274. NV.c
  275. NVMem.c
  276. NV_Certify.c
  277. NV_Certify_fp.h
  278. NV_ChangeAuth.c
  279. NV_ChangeAuth_fp.h
  280. NV_DefineSpace.c
  281. NV_DefineSpace_fp.h
  282. NV_Extend.c
  283. NV_Extend_fp.h
  284. NV_GlobalWriteLock.c
  285. NV_GlobalWriteLock_fp.h
  286. NV_Increment.c
  287. NV_Increment_fp.h
  288. NV_Read.c
  289. NV_ReadLock.c
  290. NV_ReadLock_fp.h
  291. NV_ReadPublic.c
  292. NV_ReadPublic_fp.h
  293. NV_Read_fp.h
  294. NV_SetBits.c
  295. NV_SetBits_fp.h
  296. NV_UndefineSpace.c
  297. NV_UndefineSpaceSpecial.c
  298. NV_UndefineSpaceSpecial_fp.h
  299. NV_UndefineSpace_fp.h
  300. NV_Write.c
  301. NV_WriteLock.c
  302. NV_WriteLock_fp.h
  303. NV_Write_fp.h
  304. NV_fp.h
  305. NV_spt.c
  306. NV_spt_fp.h
  307. Object.c
  308. ObjectChangeAuth.c
  309. ObjectChangeAuth_fp.h
  310. Object_fp.h
  311. Object_spt.c
  312. Object_spt_fp.h
  313. OsslCryptoEngine.h
  314. PCR.c
  315. PCR_Allocate.c
  316. PCR_Allocate_fp.h
  317. PCR_Event.c
  318. PCR_Event_fp.h
  319. PCR_Extend.c
  320. PCR_Extend_fp.h
  321. PCR_Read.c
  322. PCR_Read_fp.h
  323. PCR_Reset.c
  324. PCR_Reset_fp.h
  325. PCR_SetAuthPolicy.c
  326. PCR_SetAuthPolicy_fp.h
  327. PCR_SetAuthValue.c
  328. PCR_SetAuthValue_fp.h
  329. PCR_fp.h
  330. PP.c
  331. PPPlat.c
  332. PP_Commands.c
  333. PP_Commands_fp.h
  334. PP_fp.h
  335. PRESUBMIT.cfg
  336. Platform.h
  337. PlatformData.c
  338. PlatformData.h
  339. PolicyAuthValue.c
  340. PolicyAuthValue_fp.h
  341. PolicyAuthorize.c
  342. PolicyAuthorize_fp.h
  343. PolicyCommandCode.c
  344. PolicyCommandCode_fp.h
  345. PolicyCounterTimer.c
  346. PolicyCounterTimer_fp.h
  347. PolicyCpHash.c
  348. PolicyCpHash_fp.h
  349. PolicyDuplicationSelect.c
  350. PolicyDuplicationSelect_fp.h
  351. PolicyGetDigest.c
  352. PolicyGetDigest_fp.h
  353. PolicyLocality.c
  354. PolicyLocality_fp.h
  355. PolicyNV.c
  356. PolicyNV_fp.h
  357. PolicyNameHash.c
  358. PolicyNameHash_fp.h
  359. PolicyNvWritten.c
  360. PolicyNvWritten_fp.h
  361. PolicyOR.c
  362. PolicyOR_fp.h
  363. PolicyPCR.c
  364. PolicyPCR_fp.h
  365. PolicyPassword.c
  366. PolicyPassword_fp.h
  367. PolicyPhysicalPresence.c
  368. PolicyPhysicalPresence_fp.h
  369. PolicyRestart.c
  370. PolicyRestart_fp.h
  371. PolicySecret.c
  372. PolicySecret_fp.h
  373. PolicySigned.c
  374. PolicySigned_fp.h
  375. PolicyTicket.c
  376. PolicyTicket_fp.h
  377. Policy_spt.c
  378. Policy_spt_fp.h
  379. Power.c
  380. PowerPlat.c
  381. Power_fp.h
  382. PropertyCap.c
  383. PropertyCap_fp.h
  384. Quote.c
  385. Quote_fp.h
  386. README
  387. RSAData.c
  388. RSAKeySieve.c
  389. RSAKeySieve.h
  390. RSAKeySieve_fp.h
  391. RSA_Decrypt.c
  392. RSA_Decrypt_fp.h
  393. RSA_Encrypt.c
  394. RSA_Encrypt_fp.h
  395. ReadClock.c
  396. ReadClock_fp.h
  397. ReadPublic.c
  398. ReadPublic_fp.h
  399. Rewrap.c
  400. Rewrap_fp.h
  401. SelfTest.c
  402. SelfTest_fp.h
  403. SequenceComplete.c
  404. SequenceComplete_fp.h
  405. SequenceUpdate.c
  406. SequenceUpdate_fp.h
  407. Session.c
  408. SessionProcess.c
  409. SessionProcess_fp.h
  410. Session_fp.h
  411. SetAlgorithmSet.c
  412. SetAlgorithmSet_fp.h
  413. SetCommandCodeAuditStatus.c
  414. SetCommandCodeAuditStatus_fp.h
  415. SetPrimaryPolicy.c
  416. SetPrimaryPolicy_fp.h
  417. Shutdown.c
  418. Shutdown_fp.h
  419. Sign.c
  420. Sign_fp.h
  421. StartAuthSession.c
  422. StartAuthSession_fp.h
  423. Startup.c
  424. Startup_fp.h
  425. StirRandom.c
  426. StirRandom_fp.h
  427. TPMB.h
  428. TPMCmdp.c
  429. TPMCmds.c
  430. TPM_Types.h
  431. TcpServer.c
  432. TestParms.c
  433. TestParms_fp.h
  434. Ticket.c
  435. Ticket_fp.h
  436. Time.c
  437. Time_fp.h
  438. Tpm.h
  439. TpmBuildSwitches.h
  440. TpmError.h
  441. TpmFail.c
  442. TpmFail_fp.h
  443. TpmTcpProtocol.h
  444. Unique.c
  445. Unique_fp.h
  446. Unseal.c
  447. Unseal_fp.h
  448. VendorString.h
  449. VerifySignature.c
  450. VerifySignature_fp.h
  451. ZGen_2Phase.c
  452. ZGen_2Phase_fp.h
  453. _TPM_Hash_Data.c
  454. _TPM_Hash_Data_fp.h
  455. _TPM_Hash_End.c
  456. _TPM_Hash_End_fp.h
  457. _TPM_Hash_Start.c
  458. _TPM_Hash_Start_fp.h
  459. _TPM_Init.c
  460. _TPM_Init_fp.h
  461. bits.h
  462. bool.h
  463. generator/
  464. marshal_fp.h
  465. marshal_test.c
  466. parsep3
  467. parsep4
  468. stubs_ecc.c
  469. stubs_hash.c
  470. stubs_sym.c
  471. swap.h
  472. tpm_generated.c
  473. tpm_generated.h
  474. tpm_types.h