aboutsummaryrefslogtreecommitdiffstats
path: root/include/mcl/bn.hpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-08 14:01:40 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-08 14:01:40 +0800
commit744feda4e50938bf221d70502fa80cb78b3f7332 (patch)
treee914c9029d976530f8b7294420f9d76a81f85854 /include/mcl/bn.hpp
parent251388fffca35d5aa0a4b9d98d567bd1a744170c (diff)
downloaddexon-mcl-744feda4e50938bf221d70502fa80cb78b3f7332.tar.gz
dexon-mcl-744feda4e50938bf221d70502fa80cb78b3f7332.tar.zst
dexon-mcl-744feda4e50938bf221d70502fa80cb78b3f7332.zip
fix comment of g
Diffstat (limited to 'include/mcl/bn.hpp')
-rw-r--r--include/mcl/bn.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp
index abd5dfd..e995e74 100644
--- a/include/mcl/bn.hpp
+++ b/include/mcl/bn.hpp
@@ -264,7 +264,11 @@ struct ParamT {
uint32_t pmod4;
Fp Z;
static const size_t gN = 5;
- Fp2 g[gN]; // g[0] = xi^((p - 1) / 6), g[i] = g[i]^(i + 1)
+ /*
+ g = xi^((p - 1) / 6)
+ g[] = { g^2, g^4, g^1, g^3, g^5 }
+ */
+ Fp2 g[gN];
Fp2 g2[gN];
Fp2 g3[gN];
int b;
@@ -434,7 +438,7 @@ struct BNT {
y.getFp2()[i] *= param.g[i - 1];
}
}
- static void Frobenius2(Fp12& y, const Fp12& x)
+ static void Frobenius2(Fp12& y, const Fp12& x)
{
#if 0
Frobenius(y, x);