aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bls.cpp3
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);
}