Fix MNT4-753 Fq4 Frobenius coefficient

This commit is contained in:
Pratyush Mishra
2020-12-10 12:00:33 -08:00
parent 0486c30b3b
commit 98717da099
2 changed files with 6 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ impl Fp4Parameters for Fq4Parameters {
// c1[1] = 7684163245453501615621351552473337069301082060976805004625011694147890954040864167002308
// c1[2] = 475922286169261325753349249653048451545124879242694725395555128576210262817955800483758080
// c1[3] = 468238122923807824137727898100575114475823797181717920390930116882062371863914936316755773
//
// These are calculated as `FROBENIUS_COEFF_FP4_C1[i] = Fp2Params::NONRESIDUE^((q^i - 1) / 4)`.
#[rustfmt::skip]
const FROBENIUS_COEFF_FP4_C1: &'static [Fq] = &[
FQ_ONE,