diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2016-12-06 10:42:23 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-01-30 11:18:51 -0500 |
commit | 6b650f5428297e8dde075d25e7862a20c8d47f04 (patch) | |
tree | b268ac9fb258732a7aea73179c2f09992b76cc36 /src/include/securerom/ecverify.H | |
parent | aff3f67b49b87d5e2755b364ecb512641bbb4540 (diff) | |
download | talos-hostboot-6b650f5428297e8dde075d25e7862a20c8d47f04.tar.gz talos-hostboot-6b650f5428297e8dde075d25e7862a20c8d47f04.zip |
Compile ROM code within Hostboot
Additionally added version id to resolve story 135747
RTC: 143902
Change-Id: I67ad4b28b76464aaa58ec2c344cd1f9ceef9ff73
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33608
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/securerom/ecverify.H')
-rw-r--r-- | src/include/securerom/ecverify.H | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/include/securerom/ecverify.H b/src/include/securerom/ecverify.H index b7c707803..6c6bfe07c 100644 --- a/src/include/securerom/ecverify.H +++ b/src/include/securerom/ecverify.H @@ -22,19 +22,11 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ -/*---------------------------------------------------------------------- - * (C) COPYRIGHT INTERNATIONAL BUSINESS MACHINES CORPORATION 2010 - * ALL RIGHTS RESERVED - * IBM Research, Zurich and IBM Crypto Competency Center, Copenhagen - *---------------------------------------------------------------------- - * Author: Tamas Visegrady (tvi@zurich.ibm.com) - *----------------------------------------------------------------------*/ #if !defined(__ECVERIFY_H__) #define __ECVERIFY_H__ -/** ECDSA verification on fixed curve - */ +// ECDSA verification on fixed curve #define EC_HASHBYTES 64 /* SHA-256 */ #define EC_COORDBYTES 66 /* P-521 */ @@ -46,6 +38,7 @@ typedef uint8_t ecc_signature_t[2*EC_COORDBYTES]; * zero if parameters are valid but signature verification fails * negative if parameters (such as point) are invalid */ +extern "C" int ec_verify (const uint8_t *publicpt, /* 2*EC_COORDBYTES */ const uint8_t *hash, /* EC_HASHBYTES */ const uint8_t *signature) ; /* 2*EC_COORDBYTES */ |