aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls_if.h
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-09-14 14:37:17 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-09-14 14:37:17 +0800
commitb68d2820825b3e90302d452fed9f28bfed9668fe (patch)
treedde435ac75fd88a492fcac3947b612627d5dc675 /include/bls_if.h
parent11557e8e6001d28afdca1b5aa78b075e0c8defc3 (diff)
downloaddexon-bls-b68d2820825b3e90302d452fed9f28bfed9668fe.tar
dexon-bls-b68d2820825b3e90302d452fed9f28bfed9668fe.tar.gz
dexon-bls-b68d2820825b3e90302d452fed9f28bfed9668fe.tar.bz2
dexon-bls-b68d2820825b3e90302d452fed9f28bfed9668fe.tar.lz
dexon-bls-b68d2820825b3e90302d452fed9f28bfed9668fe.tar.xz
dexon-bls-b68d2820825b3e90302d452fed9f28bfed9668fe.tar.zst
dexon-bls-b68d2820825b3e90302d452fed9f28bfed9668fe.zip
bls_if stack version
Diffstat (limited to 'include/bls_if.h')
-rw-r--r--include/bls_if.h20
1 files changed, 16 insertions, 4 deletions
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