diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-08-03 17:43:47 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-08-03 17:43:47 +0800 |
commit | 2146aa1de7b6b410ef6e500e13b8d39dce898d0a (patch) | |
tree | fc4fd096e2b55b39273b6c1ec219ae70d984c067 | |
parent | a1fa19150ef96fcd6afeda570412227116ebf259 (diff) | |
download | tangerine-mcl-2146aa1de7b6b410ef6e500e13b8d39dce898d0a.tar.gz tangerine-mcl-2146aa1de7b6b410ef6e500e13b8d39dce898d0a.tar.zst tangerine-mcl-2146aa1de7b6b410ef6e500e13b8d39dce898d0a.zip |
rename AddFrobenius to HaveFrobenius
-rw-r--r-- | include/mcl/bn.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp index c724a82..cec183a 100644 --- a/include/mcl/bn.hpp +++ b/include/mcl/bn.hpp @@ -263,7 +263,7 @@ struct GLV1 { twisted Frobenius for G2 */ template<class G2> -struct AddFrobenius : public G2 { +struct HaveFrobenius : public G2 { typedef typename G2::Fp Fp2; /* FrobeniusOnTwist @@ -282,7 +282,7 @@ struct AddFrobenius : public G2 { D.x *= Fp2::get_gTbl()[0]; D.y *= Fp2::get_gTbl()[3]; } - static void Frobenius(AddFrobenius& y, const AddFrobenius& x) + static void Frobenius(HaveFrobenius& y, const HaveFrobenius& x) { Frobenius(static_cast<G2&>(y), static_cast<const G2&>(x)); } @@ -457,7 +457,7 @@ struct GLV2 { } void mul(G2& Q, const G2& P, mpz_class x, bool constTime = false) const { - typedef AddFrobenius<G2> G2withF; + typedef HaveFrobenius<G2> G2withF; G2withF& QQ(static_cast<G2withF&>(Q)); const G2withF& PP(static_cast<const G2withF&>(P)); mul(QQ, PP, x, constTime); @@ -564,7 +564,7 @@ struct BNT { typedef mcl::Fp12T<Fp> Fp12; typedef mcl::EcT<Fp> G1; typedef mcl::EcT<Fp2> G2; - typedef AddFrobenius<G2> G2withF; + typedef HaveFrobenius<G2> G2withF; typedef mcl::Fp2DblT<Fp> Fp2Dbl; typedef ParamT<Fp> Param; static Param param; |