diff options
| author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-04-02 04:05:25 +0800 |
|---|---|---|
| committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-04-02 04:05:25 +0800 |
| commit | 50189c16525097df518bb669786c9e958df12cee (patch) | |
| tree | d54e31089a6d7ddd4c3f59974a1d6e9981b331f6 /include/mcl | |
| parent | 2d36f00388b25a06b4ffebb526fd1ec22e81e1f1 (diff) | |
| download | tangerine-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.hpp | 4 |
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; |
