From b68d2820825b3e90302d452fed9f28bfed9668fe Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 14 Sep 2016 15:37:17 +0900 Subject: bls_if stack version --- include/bls_if.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/bls_if.h b/include/bls_if.h index 7872778..79885a0 100644 --- a/include/bls_if.h +++ b/include/bls_if.h @@ -14,15 +14,27 @@ extern "C" { #endif -typedef struct blsSecretKey blsSecretKey; -typedef struct blsPublicKey blsPublicKey; -typedef struct blsSign blsSign; -typedef struct blsId blsId; +typedef struct { + uint64_t buf[4]; +} blsId; + +typedef struct { + uint64_t buf[4]; +} blsSecretKey; + +typedef struct { + uint64_t buf[4 * 2 * 3]; +} blsPublicKey; + +typedef struct { + uint64_t buf[4 * 3]; +} blsSign; void blsInit(void); blsId *blsIdCreate(void); void blsIdDestroy(blsId *id); +void blsIdPut(const blsId *id); void blsIdCopy(blsId *dst, const blsId *src); // return 0 if success -- cgit v1.2.3