diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-08-13 14:11:14 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-08-13 14:11:14 +0800 |
commit | f25b779d48f3682a03a001f8ce0386eebd43de68 (patch) | |
tree | a95fec80bd35fcbd927ccd14659b40b3a5db7b98 /include/bls | |
parent | 56dd66510ebc611f8befbd5b22cb061616756491 (diff) | |
download | dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.gz dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.bz2 dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.lz dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.xz dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.zst dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.zip |
add getG1/FrByteSize
Diffstat (limited to 'include/bls')
-rw-r--r-- | include/bls/bls.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/bls/bls.hpp b/include/bls/bls.hpp index 914cedf..ca4d0ca 100644 --- a/include/bls/bls.hpp +++ b/include/bls/bls.hpp @@ -6,15 +6,16 @@ @license modified new BSD license http://opensource.org/licenses/BSD-3-Clause */ -#include <mcl/bn.h> #include <bls/bls.h> #include <vector> #include <string> #include <iosfwd> #include <stdint.h> -#ifdef _MSC_VER - #pragma comment(lib, "bls.lib") +#ifndef BLS_NO_AUTOLINK + #ifdef _MSC_VER + #pragma comment(lib, "bls.lib") + #endif #endif namespace bls { @@ -58,6 +59,8 @@ void init(int curve = mclBn_CurveFp254BNb, int maxUnitSize = MCLBN_FP_UNIT_SIZE) size_t getOpUnitSize(); void getCurveOrder(std::string& str); void getFieldOrder(std::string& str); +int getG1ByteSize(); +int getFrByteSize(); class SecretKey; class PublicKey; |