CpriECC.c adjustment to new behavior in OpenSSL 1.1.x
EC_POINT_set_affine_coordinates_GFp in OpenSSL 1.1 introduced sanity
check for point to be on curve. This cause some EC operations to
FAIL with crash earlier than expected. Added check for point to be on
curve to early stage and implemented proper error handling.
Corrected issue in VerifySignatureEcdsa which caused this check to
always fail due to incorrect parameters passed to
EC_POINT_set_affine_coordinates_GFp.
BUG=b/139020026
TEST=compilation succeeds, TCG test passed:
------------------------------- Test Environment -------------------------------
Test Suite Version: 2.1a
Operating System: Linux
BIOS Information: LENOVO S05KT32A
Processor Information: Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz
Mainboard Information: LENOVO 1038
TDDL Version: SocketTDDL
---------------------------------- Test Object ---------------------------------
TPM Vendor: CROS
TPM Firmware Version: 0 1
TPM Spec Version: 1.16
Vendor Specific Info: xCG , fTPM, ,
Tested Spec Version: 1.16
------------------------------ Test Result Summary -----------------------------
Test executed on: Tue Aug 7 09:25:16 2019
Performed Tests: 381
Passed Tests: 381
Failed Tests: 0
Errors: 0
Warnings: 0
=========================================================================
Change-Id: I1a17a80ebea6aa254a6fe77993137bf627a0d90b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/tpm2/+/1739514
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Commit-Queue: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Commit-Queue: Andrey Pronin <apronin@chromium.org>
Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Auto-Submit: Vadim Sukhomlinov <sukhomlinov@chromium.org>
1 file changed