- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for SetCanonicalBytes (0.12 seconds)
-
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",...Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Sep 25 19:53:19 GMT 2025 - 642.7K bytes - Click Count (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)...Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Dec 11 16:27:41 GMT 2025 - 663K bytes - Click Count (0)