- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for UnixNano (1.45 sec)
-
lib/fips140/v1.1.0-rc1.zip
found in the LICENSE file. package subtle import ( "bytes" "crypto/internal/fips140deps/byteorder" "math/rand/v2" "testing" "time" ) func TestConstantTimeLess(t *testing.T) { seed := make([]byte, 32) byteorder.BEPutUint64(seed, uint64(time.Now().UnixNano())) r := rand.NewChaCha8([32]byte(seed)) for l := range 20 { a := make([]byte, l) b := make([]byte, l) empty := make([]byte, l) r.Read(a) r.Read(b) exp := 0 if bytes.Compare(a, b) <= 0 { exp = 1 } if got := ConstantTimeLessOrEq(a, b); got != exp...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)