- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestScalarSetCanonic (0.09 sec)
-
lib/fips140/v1.0.0-c2097c7c.zip
reflect.ValueOf(val) } func TestScalarGenerate(t *testing.T) { f := func(sc Scalar) bool { return isReduced(sc.Bytes()) } if err := quick.Check(f, quickCheckConfig(1024)); err != nil { t.Errorf("generated unreduced scalar: %v", err) } } func TestScalarSetCanonic(t *testing.T) { f1 := func(in [32]byte, sc Scalar) bool { // Mask out top 4 bits to guarantee value falls in [0, l). in[len(in)-1] &= (1 << 4) - 1 if _, err := sc.SetCanonicalBytes(in[:]); err != nil { return false } repr := sc.Bytes() return...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Sep 25 19:53:19 UTC 2025 - 642.7K bytes - Viewed (0) -
lib/fips140/v1.1.0-rc1.zip
reflect.ValueOf(val) } func TestScalarGenerate(t *testing.T) { f := func(sc Scalar) bool { return isReduced(sc.Bytes()) } if err := quick.Check(f, quickCheckConfig(1024)); err != nil { t.Errorf("generated unreduced scalar: %v", err) } } func TestScalarSetCanonic(t *testing.T) { f1 := func(in [32]byte, sc Scalar) bool { // Mask out top 4 bits to guarantee value falls in [0, l). in[len(in)-1] &= (1 << 4) - 1 if _, err := sc.SetCanonicalBytes(in[:]); err != nil { return false } repr := sc.Bytes() return...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)