diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-02-12 17:11:06 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-02-12 17:11:06 +0800 |
commit | b03af9e984babe8097a894e154f9dc897c537618 (patch) | |
tree | 54354abe7b5d8a1de8c3830b979c7c5a4a6f5279 | |
parent | 72b38ba2e60a860d98ec6ac654aab8285c623e14 (diff) | |
download | dexon-bls-b03af9e984babe8097a894e154f9dc897c537618.tar.gz dexon-bls-b03af9e984babe8097a894e154f9dc897c537618.tar.zst dexon-bls-b03af9e984babe8097a894e154f9dc897c537618.zip |
use Fp::setMsg
-rw-r--r-- | src/bls.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bls.cpp b/src/bls.cpp index 3739fab..1254c14 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -37,9 +37,8 @@ static void mapToG1(G1& P, const Fp& t) static void HashAndMapToG1(G1& P, const std::string& m) { - std::string digest = cybozu::crypto::Hash::digest(cybozu::crypto::Hash::N_SHA256, m); Fp t; - t.setArrayMask(digest.c_str(), digest.size()); + t.setMsg(m); mapToG1(P, t); } |