From b03af9e984babe8097a894e154f9dc897c537618 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 12 Feb 2017 18:11:06 +0900 Subject: use Fp::setMsg --- src/bls.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/bls.cpp') 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); } -- cgit v1.2.3