diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2015-05-29 11:35:04 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-03 21:17:38 +0000 |
commit | 0a05071eda743000b3936bae53374bbe07893848 (patch) | |
tree | c801d07fd11566d658a066d54f55f6eeb1323bb5 /CpriECC_fp.h | |
parent | fea3a14b16095f93f2d69f1a9e8744883c95a992 (diff) | |
download | tpm2-0a05071eda743000b3936bae53374bbe07893848.tar.gz |
Changes to allow compilation of CpriECC.c
Some openssl includes do not meet this module's expectations, a
definition of ec_group_st (which is tyoedefed to EC_CURVE) was added
to resolve compilation issues. This structure contents will have to be
refined.
CpriDataECC.c is not supposed to be a separate compilation unit, and
as such it is being removed from Makefile.
BUG=none
TEST=compilation succeeds:
cc -Wall -Werror -c -o /dev/null CpriECC.c
Change-Id: Ib37e34d567f95af20a064acd70c706a6359edd8c
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/274099
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Diffstat (limited to 'CpriECC_fp.h')
-rw-r--r-- | CpriECC_fp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CpriECC_fp.h b/CpriECC_fp.h index c0eb8e6..58d4433 100644 --- a/CpriECC_fp.h +++ b/CpriECC_fp.h @@ -7,6 +7,10 @@ #ifndef __TPM2_CPRIECC_FP_H #define __TPM2_CPRIECC_FP_H +LIB_EXPORT BOOL _cpri__EccIsPointOnCurve( + TPM_ECC_CURVE curveId, // IN: the curve selector + TPMS_ECC_POINT *Q // IN: the point. + ); LIB_EXPORT BOOL _cpri__EccStartup(void); #endif // __TPM2_CPRIECC_FP_H |