diff options
author | Vadim Sukhomlinov <sukhomlinov@google.com> | 2019-08-21 15:47:03 -0700 |
---|---|---|
committer | Vadim Sukhomlinov <sukhomlinov@chromium.org> | 2020-06-02 18:46:44 +0000 |
commit | 1da8e0dd19cd7e7c16712fbf0deb00c9f4ad5889 (patch) | |
tree | 0c4b98f5dd8f4c39336e110d959382d858826be2 /board/cr50/tpm2/hash.c | |
parent | ea0fd78e5e218ef50ba947f4c921ae91a69b5442 (diff) | |
download | chrome-ec-1da8e0dd19cd7e7c16712fbf0deb00c9f4ad5889.tar.gz |
tpmtest: added more corner case, make it work again with OpenSSL 1.1
The TPM test directory has bitrotted and does not compile any more,
leave alone pass tests. This patch updates the tests to match changed
EC codebase:
test/tpm_test/Makefile - look for include files in more directories
test/tpm_test/bn_test.c -
1. add support for OpenSSL 1.1 where BIGNUM structure became opaque
and require special functions to access it.
2. added backward compatibility layer for OpenSSL 1.0.2
3. fixed issues with OpenSSL memory allocations
4. added support to print details of failure
5. added more cases for modulo inverse testing
6. added testing for bn_div to increase branch coverage
BRANCH=cr50
BUG=none
TEST=./test/tpm_test (../../build/tpm_test/bn_test) now passes
Change-Id: Ida5fb07277909977f78ad1199e7a0f3677aabdc3
Signed-off-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1764711
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Commit-Queue: Andrey Pronin <apronin@chromium.org>
(cherry picked from commit fb1d26a58e5511d70f747e8b943096c22dead07c)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2223147
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'board/cr50/tpm2/hash.c')
0 files changed, 0 insertions, 0 deletions