diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-05-09 16:50:04 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-05-09 16:50:04 +0800 |
commit | 9fbc26c3f65563de039d86e7425621e689fc332b (patch) | |
tree | d08762a50c5b5c7c59d90716b5ef485698c789b1 /include/bls_if.h | |
parent | c27528ebe3893062d6328bd173eb8d0c3ccabbcb (diff) | |
download | dexon-bls-9fbc26c3f65563de039d86e7425621e689fc332b.tar dexon-bls-9fbc26c3f65563de039d86e7425621e689fc332b.tar.gz dexon-bls-9fbc26c3f65563de039d86e7425621e689fc332b.tar.bz2 dexon-bls-9fbc26c3f65563de039d86e7425621e689fc332b.tar.lz dexon-bls-9fbc26c3f65563de039d86e7425621e689fc332b.tar.xz dexon-bls-9fbc26c3f65563de039d86e7425621e689fc332b.tar.zst dexon-bls-9fbc26c3f65563de039d86e7425621e689fc332b.zip |
rename constant value name Bls*** to bls***
Diffstat (limited to 'include/bls_if.h')
-rw-r--r-- | include/bls_if.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/bls_if.h b/include/bls_if.h index 5b718f0..f8d174d 100644 --- a/include/bls_if.h +++ b/include/bls_if.h @@ -18,8 +18,10 @@ #define BLS256_DLL_API __declspec(dllexport) #else #define BLS256_DLL_API __declspec(dllimport) -#ifndef MCL_NO_AUTOLINK - #pragma comment(lib, "bls_if.lib") +#ifndef BLS_NO_AUTOLINK + #if BLS_MAX_OP_UNIT_SIZE == 4 + #pragma comment(lib, "bls_if256.lib") + #endif #endif #endif #else @@ -31,17 +33,17 @@ extern "C" { #endif enum { - BlsCurveFp254BNb = 0, - BlsCurveFp382_1 = 1, - BlsCurveFp382_2 = 2 + blsCurveFp254BNb = 0, + blsCurveFp382_1 = 1, + blsCurveFp382_2 = 2 }; // same value with bls.hpp enum { - BlsIoBin = 2, // binary number - BlsIoDec = 10, // decimal number - BlsIoHex = 16, // hexadecimal number - BlsIoEcComp = 512 // fixed byte representation + blsIoBin = 2, // binary number + blsIoDec = 10, // decimal number + blsIoHex = 16, // hexadecimal number + blsIoEcComp = 512 // fixed byte representation }; typedef struct { |