- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for fromP1xP1 (0.15 sec)
-
src/crypto/internal/edwards25519/tables.go
for i := 0; i < 7; i++ { v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.Add(&q2, &v.points[i]))) } } // This is not optimised for speed; fixed-base tables should be precomputed. func (v *nafLookupTable8) FromP3(q *Point) { v.points[0].FromP3(q) q2 := Point{} q2.Add(q, q) tmpP3 := Point{} tmpP1xP1 := projP1xP1{} for i := 0; i < 63; i++ { v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.AddAffine(&q2, &v.points[i]))) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 05 21:02:45 UTC 2022 - 3.7K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalarmult_test.go
t.Errorf("Basepoint table %d does not match", i) } // Set p = (16^2)*p = 256*p = 2^8*p tmp2.FromP3(tmp3) for j := 0; j < 7; j++ { tmp1.Double(tmp2) tmp2.FromP1xP1(tmp1) } tmp1.Double(tmp2) tmp3.fromP1xP1(tmp1) checkOnCurve(t, tmp3) } } func TestScalarMultMatchesBaseMult(t *testing.T) { scalarMultMatchesBaseMult := func(x Scalar) bool { var p, q Point
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 4.9K bytes - Viewed (0) -
src/crypto/internal/edwards25519/edwards25519_test.go
} func TestAddSubNegOnBasePoint(t *testing.T) { checkLhs, checkRhs := &Point{}, &Point{} checkLhs.Add(B, B) tmpP2 := new(projP2).FromP3(B) tmpP1xP1 := new(projP1xP1).Double(tmpP2) checkRhs.fromP1xP1(tmpP1xP1) if checkLhs.Equal(checkRhs) != 1 { t.Error("B + B != [2]B") } checkOnCurve(t, checkLhs, checkRhs) checkLhs.Subtract(B, B) Bneg := new(Point).Negate(B) checkRhs.Add(B, Bneg)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 10 18:45:00 UTC 2022 - 9.3K bytes - Viewed (0)