aboutsummaryrefslogtreecommitdiff
path: root/tpm_types.h
AgeCommit message (Collapse)Author
2016-03-08Disable algorithms ECDAA, ECSCHNORR, and SM2 (take 2).nagendra modadugu
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>
2016-03-08Revert "Disable algorithms ECDAA, ECSCHNORR, and SM2."nagendra modadugu
This reverts commit 7709a63d45f6f782230326c16be7bfa149e9e497, as it breaks the android build (due to _cpri__EccCommitCompute remaining undefined, which the android build is stricter about). BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524 TEST=compilation succeeds Change-Id: I80c5b238b81e68e5673ac8ea72bf112143d328ba Reviewed-on: https://chromium-review.googlesource.com/331325 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Nagendra Modadugu <ngm@google.com>
2016-03-08Disable algorithms ECDAA, ECSCHNORR, and SM2.nagendra modadugu
Disable optional algorithms that are currently unimplemented. This will allow the TPM2 suite to run the appropriate sub-set of tests. TEST=compilation succeeds BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524 Change-Id: I3165eba4eaeaeec0c9e9242b6cee33d3b0bca452 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/330872 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2016-02-05Revert "Temporarily add padding to nested struct to ensure word alignment."nagendra modadugu
This reverts commit 821d29792def7d472b92464d56dde6d733af7f30. BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524,chrome-os-partner:49770 TEST=compiles, CR50 tests pass Change-Id: Ibde197d3dd2b4ca9a0cdde51590a74bf0fd73b27 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/326181 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2016-01-27Temporarily add padding to nested struct to ensure word alignment.nagendra modadugu
I'll remove this hack Real Soon Now. TEST=compiles, CR50 tests pass BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524,chrome-os-partner:49770 Change-Id: I18e110ba4fd988abea5e91cb52b4b82ddcf1ec98 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/323852 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2015-10-28Regenerate source code with no field type substitutionsVadim Bendebury
This patch is a result of running the latest version of the code generating scripts. BUG=chrome-os-partner:43025 TEST=with a few source code tweaks all tests pass Change-Id: I5d1e80e89a9df258852797dd4b9f8a6377bc505a Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/309305 Commit-Ready: Vadim Bendebury <vbendeb@google.com> Tested-by: Vadim Bendebury <vbendeb@google.com> Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
2015-10-14Regenerate union definitions to depend on configured algorithmsVadim Bendebury
BUG=chrome-os-partner:44608 TEST=verified that generated code uses compilation guards where appropriate. The passing tests subset does not change. Change-Id: Ic546b3e7ca70b3c62c0c17802dddf9d90007f30f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/305495 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
2015-10-14Regenerate source code honoring base algorithm dependenciesVadim Bendebury
This is a source code update generated using the scripts in the previous patch. BUG=chrome-os-partner:44608 TEST=verified that generated code uses updated algorithm subsets Change-Id: I77eaabb57cbc5dfdd7588f98917f0e57e3b41bc3 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/305493 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
2015-10-14regenerate tpm_type.h without marshaling error code duplication.Vadim Bendebury
This is the result of running the scripts modified in the previous patch. BUG=chrome-os-partner:44608 TEST=compilation still succeeds, no change in the set of passing tests Change-Id: I507db9fb016dbf7dd422d261c742a988a59fcae7 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/305389 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
2015-10-13generator: re-generate source filesVadim Bendebury
This patch is the result of running the code generation scripts from the previous patch. The main deviation from the code which existed earlier is the fact that the TPM types are now generated (before they were manually copied from an open source implementation). TPM_Types.h had to be edited manually to exclude all copied stuff and include the generated file (tmp_types.h). The changes are minimal - out of the 223 generated files only a handful differs, ans most of the changes are due to the actual structure layout and set of supported algorithms changes. BUG=chromium:501639 TEST=the only change is building the library standalone and as a part of the cr50 image, both succeed. Change-Id: I4ef87a08c2457524d7e22d53a58964056414174c Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/300663