crypto/internal/edwards25519/field.Element.Square (method)

57 uses

	crypto/internal/edwards25519/field (current package)
		fe.go#L125: 	z2.Square(z)             // 2
		fe.go#L126: 	t.Square(&z2)            // 4
		fe.go#L127: 	t.Square(&t)             // 8
		fe.go#L130: 	t.Square(&z11)           // 22
		fe.go#L133: 	t.Square(&z2_5_0) // 2^6 - 2^1
		fe.go#L135: 		t.Square(&t) // 2^10 - 2^5
		fe.go#L139: 	t.Square(&z2_10_0) // 2^11 - 2^1
		fe.go#L141: 		t.Square(&t) // 2^20 - 2^10
		fe.go#L145: 	t.Square(&z2_20_0) // 2^21 - 2^1
		fe.go#L147: 		t.Square(&t) // 2^40 - 2^20
		fe.go#L151: 	t.Square(&t) // 2^41 - 2^1
		fe.go#L153: 		t.Square(&t) // 2^50 - 2^10
		fe.go#L157: 	t.Square(&z2_50_0) // 2^51 - 2^1
		fe.go#L159: 		t.Square(&t) // 2^100 - 2^50
		fe.go#L163: 	t.Square(&z2_100_0) // 2^101 - 2^1
		fe.go#L165: 		t.Square(&t) // 2^200 - 2^100
		fe.go#L169: 	t.Square(&t) // 2^201 - 2^1
		fe.go#L171: 		t.Square(&t) // 2^250 - 2^50
		fe.go#L175: 	t.Square(&t) // 2^251 - 2^1
		fe.go#L176: 	t.Square(&t) // 2^252 - 2^2
		fe.go#L177: 	t.Square(&t) // 2^253 - 2^3
		fe.go#L178: 	t.Square(&t) // 2^254 - 2^4
		fe.go#L179: 	t.Square(&t) // 2^255 - 2^5
		fe.go#L308: func (v *Element) Square(x *Element) *Element {
		fe.go#L342: 	t0.Square(x)             // x^2
		fe.go#L343: 	t1.Square(&t0)           // x^4
		fe.go#L344: 	t1.Square(&t1)           // x^8
		fe.go#L347: 	t0.Square(&t0)           // x^22
		fe.go#L349: 	t1.Square(&t0)           // x^62
		fe.go#L351: 		t1.Square(&t1)
		fe.go#L354: 	t1.Square(&t0)            // 2^11 - 2
		fe.go#L356: 		t1.Square(&t1)
		fe.go#L359: 	t2.Square(&t1)            // 2^21 - 2
		fe.go#L361: 		t2.Square(&t2)
		fe.go#L364: 	t1.Square(&t1)            // 2^41 - 2
		fe.go#L366: 		t1.Square(&t1)
		fe.go#L369: 	t1.Square(&t0)            // 2^51 - 2
		fe.go#L371: 		t1.Square(&t1)
		fe.go#L374: 	t2.Square(&t1)             // 2^101 - 2
		fe.go#L376: 		t2.Square(&t2)
		fe.go#L379: 	t1.Square(&t1)            // 2^201 - 2
		fe.go#L381: 		t1.Square(&t1)
		fe.go#L384: 	t0.Square(&t0)            // 2^251 - 2
		fe.go#L385: 	t0.Square(&t0)            // 2^252 - 4
		fe.go#L402: 	v2 := new(Element).Square(v)
		fe.go#L404: 	uv7 := new(Element).Multiply(uv3, t0.Square(v2))
		fe.go#L407: 	check := new(Element).Multiply(v, t0.Square(rr)) // check = v * r^2

	crypto/internal/edwards25519
		edwards25519.go#L163: 	y2 := new(field.Element).Square(y)
		edwards25519.go#L220: 	v.z.Square(&p.Z)
		edwards25519.go#L355: 	XX.Square(&p.X)
		edwards25519.go#L356: 	YY.Square(&p.Y)
		edwards25519.go#L357: 	ZZ2.Square(&p.Z)
		edwards25519.go#L360: 	XplusYsq.Square(&XplusYsq)

	crypto/ecdh
		x25519.go#L115: 		tmp0.Square(&tmp1)
		x25519.go#L116: 		tmp1.Square(&x2)
		x25519.go#L121: 		z2.Square(&z2)
		x25519.go#L124: 		x3.Square(&x3)