diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-15 09:45:47 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-15 09:45:51 +0800 |
commit | 0310c3a2274f1e48b2aa1631229d3904c5c80022 (patch) | |
tree | 79308931fcd3a83100c2e42138a9a9753079cb9c /src | |
parent | 90b13a50d0bf2d7f4520121ff1d87e13cab82ff4 (diff) | |
download | dexon-bls-0310c3a2274f1e48b2aa1631229d3904c5c80022.tar dexon-bls-0310c3a2274f1e48b2aa1631229d3904c5c80022.tar.gz dexon-bls-0310c3a2274f1e48b2aa1631229d3904c5c80022.tar.bz2 dexon-bls-0310c3a2274f1e48b2aa1631229d3904c5c80022.tar.lz dexon-bls-0310c3a2274f1e48b2aa1631229d3904c5c80022.tar.xz dexon-bls-0310c3a2274f1e48b2aa1631229d3904c5c80022.tar.zst dexon-bls-0310c3a2274f1e48b2aa1631229d3904c5c80022.zip |
fix correct getOpUnitSize()
Diffstat (limited to 'src')
-rw-r--r-- | src/bls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bls.cpp b/src/bls.cpp index 97ca2a1..8679ea5 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -208,7 +208,7 @@ void init(int curve, int maxUnitSize) } size_t getOpUnitSize() { - return sizeof(Fp) / sizeof(uint64_t); + return Fp::getUnitSize() * sizeof(mcl::fp::Unit) / sizeof(uint64_t); } Id::Id(unsigned int id) |