aboutsummaryrefslogtreecommitdiffstats
path: root/include/mcl
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-04-02 04:05:25 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-04-02 04:05:25 +0800
commit50189c16525097df518bb669786c9e958df12cee (patch)
treed54e31089a6d7ddd4c3f59974a1d6e9981b331f6 /include/mcl
parent2d36f00388b25a06b4ffebb526fd1ec22e81e1f1 (diff)
downloadtangerine-mcl-50189c16525097df518bb669786c9e958df12cee.tar.gz
tangerine-mcl-50189c16525097df518bb669786c9e958df12cee.tar.zst
tangerine-mcl-50189c16525097df518bb669786c9e958df12cee.zip
miss to update
Diffstat (limited to 'include/mcl')
-rw-r--r--include/mcl/she.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mcl/she.hpp b/include/mcl/she.hpp
index 788bb15..c9220fc 100644
--- a/include/mcl/she.hpp
+++ b/include/mcl/she.hpp
@@ -255,7 +255,7 @@ public:
template<class OutputStream>
void save(OutputStream& os) const
{
- cybozu::save(os, bn_current::BN::param.curveType);
+ cybozu::save(os, bn_current::BN::param.cp.curveType);
cybozu::writeChar(os, GtoChar<G>());
cybozu::save(os, kcv_.size());
cybozu::write(os, &kcv_[0], sizeof(kcv_[0]) * kcv_.size());
@@ -276,7 +276,7 @@ public:
{
int curveType;
cybozu::load(curveType, is);
- if (curveType != bn_current::BN::param.curveType) throw cybozu::Exception("HashTable:bad curveType") << curveType;
+ if (curveType != bn_current::BN::param.cp.curveType) throw cybozu::Exception("HashTable:bad curveType") << curveType;
char c = 0;
if (!cybozu::readChar(&c, is) || c != GtoChar<G>()) throw cybozu::Exception("HashTable:bad c") << (int)c;
size_t kcvSize;