diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-04 08:34:43 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-04 08:34:43 +0800 |
commit | acf1c832c65429be7f07d8bae5ce91978f78e75f (patch) | |
tree | bf47fed054a78659281a88fd603c9810550ae1a0 /include/bls/bls.h | |
parent | 5a38c2e8c9a27555229e9cd61455caf1aa3d8907 (diff) | |
download | dexon-bls-acf1c832c65429be7f07d8bae5ce91978f78e75f.tar dexon-bls-acf1c832c65429be7f07d8bae5ce91978f78e75f.tar.gz dexon-bls-acf1c832c65429be7f07d8bae5ce91978f78e75f.tar.bz2 dexon-bls-acf1c832c65429be7f07d8bae5ce91978f78e75f.tar.lz dexon-bls-acf1c832c65429be7f07d8bae5ce91978f78e75f.tar.xz dexon-bls-acf1c832c65429be7f07d8bae5ce91978f78e75f.tar.zst dexon-bls-acf1c832c65429be7f07d8bae5ce91978f78e75f.zip |
use MBN_.. instead of BLS_
Diffstat (limited to 'include/bls/bls.h')
-rw-r--r-- | include/bls/bls.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h index e762f2e..cb84147 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -6,12 +6,7 @@ @license modified new BSD license http://opensource.org/licenses/BSD-3-Clause */ -#ifndef BLS_FP_UNIT_SIZE - #error "define BLS_FP_UNIT_SIZE 4(or 6)" -#endif - -#include <stdint.h> // for uint64_t, uint8_t -#include <stdlib.h> // for size_t +#include <mcl/bn.h> #ifdef _MSC_VER #ifdef BLS_DLL_EXPORT @@ -19,7 +14,7 @@ #else #define BLS_DLL_API __declspec(dllimport) #ifndef BLS_NO_AUTOLINK - #if BLS_FP_UNIT_SIZE == 4 + #if MBN_FP_UNIT_SIZE == 4 #pragma comment(lib, "bls256.lib") #endif #endif @@ -39,19 +34,19 @@ enum { }; typedef struct { - uint64_t buf[BLS_FP_UNIT_SIZE]; + uint64_t buf[MBN_FP_UNIT_SIZE]; } blsId; typedef struct { - uint64_t buf[BLS_FP_UNIT_SIZE]; + uint64_t buf[MBN_FP_UNIT_SIZE]; } blsSecretKey; typedef struct { - uint64_t buf[BLS_FP_UNIT_SIZE * 2 * 3]; + uint64_t buf[MBN_FP_UNIT_SIZE * 2 * 3]; } blsPublicKey; typedef struct { - uint64_t buf[BLS_FP_UNIT_SIZE * 3]; + uint64_t buf[MBN_FP_UNIT_SIZE * 3]; } blsSignature; /* |