github.com/cloudflare/circl@v1.5.0/ecc/fourq/fq_noasm.go (about) 1 //go:build !amd64 || purego 2 // +build !amd64 purego 3 4 package fourq 5 6 import "crypto/subtle" 7 8 func fqCmov(c, a *Fq, b int) { 9 subtle.ConstantTimeCopy(b, c[0][:], a[0][:]) 10 subtle.ConstantTimeCopy(b, c[1][:], a[1][:]) 11 } 12 func fqAdd(c, a, b *Fq) { fqAddGeneric(c, a, b) } 13 func fqSub(c, a, b *Fq) { fqSubGeneric(c, a, b) } 14 func fqMul(c, a, b *Fq) { fqMulGeneric(c, a, b) } 15 func fqSqr(c, a *Fq) { fqSqrGeneric(c, a) }