Fix to test Fp12 towering: Fp4 vs Fp6

This commit is contained in:
Mamy André-Ratsimbazafy 2021-02-07 14:10:06 +01:00
parent e23f990280
commit c4a2dee42d
No known key found for this signature in database
GPG Key ID: 7B88AD1FE79492E1
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,7 @@ func prod*(r: var Fp6, a: Fp6, _: type NonResidue) {.inline.} =
let t = a.c2
r.c1 = a.c0
r.c2 = a.c1
t.c0.prod(t, NonResidue)
r.c0.prod(t, NonResidue)
func `*=`*(a: var Fp6, _: type NonResidue) {.inline.} =
## Multiply an element of 𝔽p4 by the non-residue
@ -255,6 +255,7 @@ func `*=`*(a: var Fp6, _: type NonResidue) {.inline.} =
type
Fp12*[C: static Curve] =
CubicExt[Fp4[C]]
# QuadraticExt[Fp6[C]]
# Sparse functions
# ----------------------------------------------------------------