From a90c968b55d975bc0e958631892d1a1799ae97d5 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 21 Aug 2016 15:48:23 +0900 Subject: replace prv with sec --- src/bls.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/bls.cpp b/src/bls.cpp index d9b8a6a..57c6dee 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -357,14 +357,14 @@ bool SecretKey::operator==(const SecretKey& rhs) const return id_ == rhs.id_ && self_->s == rhs.self_->s; } -std::ostream& operator<<(std::ostream& os, const SecretKey& prv) +std::ostream& operator<<(std::ostream& os, const SecretKey& sec) { - return os << prv.id_ << ' ' << prv.self_->s; + return os << sec.id_ << ' ' << sec.self_->s; } -std::istream& operator>>(std::istream& is, SecretKey& prv) +std::istream& operator>>(std::istream& is, SecretKey& sec) { - return is >> prv.id_ >> prv.self_->s; + return is >> sec.id_ >> sec.self_->s; } void SecretKey::init() @@ -408,10 +408,10 @@ void SecretKey::set(const MasterSecretKey& msk, int id) id_ = id; } -void SecretKey::recover(const std::vector& prvVec) +void SecretKey::recover(const std::vector& secVec) { Fr s; - LagrangeInterpolation(s, prvVec); + LagrangeInterpolation(s, secVec); self_->s = s; id_ = 0; } -- cgit v1.2.3