- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetCanonicalBytes (0.08 sec)
-
lib/fips140/v1.0.0-c2097c7c.zip
err != nil { t.Errorf("failed scalar->bytes->scalar round-trip: %v", err) } b := scalarMinusOneBytes b[31] += 1 s := scOne if out, err := s.SetCanonicalBytes(b[:]); err == nil { t.Errorf("SetCanonicalBytes worked on a non-canonical value") } else if s != scOne { t.Errorf("SetCanonicalBytes modified its receiver") } else if out != nil { t.Errorf("SetCanonicalBytes did not return nil with an error") } } func TestScalarSetUniform(t *testing.T) { mod, _ := new(big.Int).SetString("27742317777372353535",...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
{ t.Errorf("failed scalar->bytes->scalar round-trip: %v", err) } expectReject := func(b []byte) { t.Helper() s := scOne if out, err := s.SetCanonicalBytes(b[:]); err == nil { t.Errorf("SetCanonicalBytes worked on a non-canonical value") } else if s != scOne { t.Errorf("SetCanonicalBytes modified its receiver") } else if out != nil { t.Errorf("SetCanonicalBytes did not return nil with an error") } } b := scMinusOne.Bytes() b[0] += 1 expectReject(b) b = scMinusOne.Bytes() b[31] += 1 expectReject(b)...Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)