- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for expectReject (0.07 sec)
-
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) b = scMinusOne.Bytes()...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)