mirror of
https://github.com/logos-storage/constantine.git
synced 2026-01-08 08:03:09 +00:00
Fix to test Fp12 towering: Fp4 vs Fp6
This commit is contained in:
parent
e23f990280
commit
c4a2dee42d
@ -233,7 +233,7 @@ func prod*(r: var Fp6, a: Fp6, _: type NonResidue) {.inline.} =
|
|||||||
let t = a.c2
|
let t = a.c2
|
||||||
r.c1 = a.c0
|
r.c1 = a.c0
|
||||||
r.c2 = a.c1
|
r.c2 = a.c1
|
||||||
t.c0.prod(t, NonResidue)
|
r.c0.prod(t, NonResidue)
|
||||||
|
|
||||||
func `*=`*(a: var Fp6, _: type NonResidue) {.inline.} =
|
func `*=`*(a: var Fp6, _: type NonResidue) {.inline.} =
|
||||||
## Multiply an element of 𝔽p4 by the non-residue
|
## Multiply an element of 𝔽p4 by the non-residue
|
||||||
@ -255,6 +255,7 @@ func `*=`*(a: var Fp6, _: type NonResidue) {.inline.} =
|
|||||||
type
|
type
|
||||||
Fp12*[C: static Curve] =
|
Fp12*[C: static Curve] =
|
||||||
CubicExt[Fp4[C]]
|
CubicExt[Fp4[C]]
|
||||||
|
# QuadraticExt[Fp6[C]]
|
||||||
|
|
||||||
# Sparse functions
|
# Sparse functions
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user