aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.h
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-05 20:58:19 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-05 20:58:19 +0800
commit2707ef159e0d988b8e4c0d9ed644a9e47deae3f4 (patch)
tree7398b3a533cefacfc4056d2ee15309cd72a45579 /include/bls/bls.h
parentacf1c832c65429be7f07d8bae5ce91978f78e75f (diff)
downloaddexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.gz
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.bz2
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.lz
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.xz
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.zst
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.zip
use struts of bn.h
Diffstat (limited to 'include/bls/bls.h')
-rw-r--r--include/bls/bls.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index cb84147..47b33cf 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -14,7 +14,7 @@
#else
#define BLS_DLL_API __declspec(dllimport)
#ifndef BLS_NO_AUTOLINK
- #if MBN_FP_UNIT_SIZE == 4
+ #if MCLBN_FP_UNIT_SIZE == 4
#pragma comment(lib, "bls256.lib")
#endif
#endif
@@ -34,19 +34,19 @@ enum {
};
typedef struct {
- uint64_t buf[MBN_FP_UNIT_SIZE];
+ mclBnFr v;
} blsId;
typedef struct {
- uint64_t buf[MBN_FP_UNIT_SIZE];
+ mclBnFr v;
} blsSecretKey;
typedef struct {
- uint64_t buf[MBN_FP_UNIT_SIZE * 2 * 3];
+ mclBnG2 v;
} blsPublicKey;
typedef struct {
- uint64_t buf[MBN_FP_UNIT_SIZE * 3];
+ mclBnG1 v;
} blsSignature;
/*