aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.h
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-04 05:55:43 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-04 05:55:43 +0800
commit5a38c2e8c9a27555229e9cd61455caf1aa3d8907 (patch)
treee9ab1cbf24a5f65601cea7e6681044b83b947d5d /include/bls/bls.h
parent1682083203424fee2670e8e1c57f4786ed8b3234 (diff)
downloaddexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar
dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.gz
dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.bz2
dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.lz
dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.xz
dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.zst
dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.zip
rename bls_if.h to bls.h
Diffstat (limited to 'include/bls/bls.h')
-rw-r--r--include/bls/bls.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index 7a25b54..e762f2e 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -6,8 +6,8 @@
@license modified new BSD license
http://opensource.org/licenses/BSD-3-Clause
*/
-#ifndef BLS_MAX_OP_UNIT_SIZE
- #error "define BLS_MAX_OP_UNIT_SIZE 4(or 6)"
+#ifndef BLS_FP_UNIT_SIZE
+ #error "define BLS_FP_UNIT_SIZE 4(or 6)"
#endif
#include <stdint.h> // for uint64_t, uint8_t
@@ -19,8 +19,8 @@
#else
#define BLS_DLL_API __declspec(dllimport)
#ifndef BLS_NO_AUTOLINK
- #if BLS_MAX_OP_UNIT_SIZE == 4
- #pragma comment(lib, "bls_if256.lib")
+ #if BLS_FP_UNIT_SIZE == 4
+ #pragma comment(lib, "bls256.lib")
#endif
#endif
#endif
@@ -39,19 +39,19 @@ enum {
};
typedef struct {
- uint64_t buf[BLS_MAX_OP_UNIT_SIZE];
+ uint64_t buf[BLS_FP_UNIT_SIZE];
} blsId;
typedef struct {
- uint64_t buf[BLS_MAX_OP_UNIT_SIZE];
+ uint64_t buf[BLS_FP_UNIT_SIZE];
} blsSecretKey;
typedef struct {
- uint64_t buf[BLS_MAX_OP_UNIT_SIZE * 2 * 3];
+ uint64_t buf[BLS_FP_UNIT_SIZE * 2 * 3];
} blsPublicKey;
typedef struct {
- uint64_t buf[BLS_MAX_OP_UNIT_SIZE * 3];
+ uint64_t buf[BLS_FP_UNIT_SIZE * 3];
} blsSignature;
/*