- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isReduced (0.15 sec)
-
src/crypto/internal/edwards25519/scalar_alias_test.go
if out := f(&v, &x, &y); out != &v || !isReduced(out.Bytes()) { return false } // Test aliasing the first argument and the receiver. v1 = x if out := f(&v1, &v1, &y); out != &v1 || v1 != v || !isReduced(out.Bytes()) { return false } // Test aliasing the second argument and the receiver. v1 = y if out := f(&v1, &x, &v1); out != &v1 || v1 != v || !isReduced(out.Bytes()) { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 3K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalar_test.go
// Compute t2 = x*z + y*z var t2 Scalar var t3 Scalar t2.Multiply(&x, &z) t3.Multiply(&y, &z) t2.Add(&t2, &t3) reprT1, reprT2 := t1.Bytes(), t2.Bytes() return t1 == t2 && isReduced(reprT1) && isReduced(reprT2) } if err := quick.Check(multiplyDistributesOverAdd, quickCheckConfig(1024)); err != nil { t.Error(err) } } func TestScalarAddLikeSubNeg(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 7.6K bytes - Viewed (0)