- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for bigIntFromLittleEndi (0.1 seconds)
-
lib/fips140/v1.26.0.zip
new(big.Int).SetString("27742317777372353535", 10) mod.Add(mod, new(big.Int).Lsh(big.NewInt(1), 252)) f := func(in [64]byte, sc Scalar) bool { sc.SetUniformBytes(in[:]) repr := sc.Bytes() if !isReduced(repr) { return false } scBig := bigIntFromLittleEndi(repr[:]) inBig := bigIntFromLittleEndi(in[:]) return inBig.Mod(inBig, mod).Cmp(scBig) == 0 } if err := quick.Check(f, quickCheckConfig(1024)); err != nil { t.Error(err) } } func TestScalarSetBytesWi(t *testing.T) { // Generated with libsodium.js 1.0.18 crypto...
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 08 17:58:32 GMT 2026 - 660.3K bytes - Click Count (0) -
lib/fips140/v1.0.0-c2097c7c.zip
new(big.Int).SetString("27742317777372353535", 10) mod.Add(mod, new(big.Int).Lsh(big.NewInt(1), 252)) f := func(in [64]byte, sc Scalar) bool { sc.SetUniformBytes(in[:]) repr := sc.Bytes() if !isReduced(repr) { return false } scBig := bigIntFromLittleEndi(repr[:]) inBig := bigIntFromLittleEndi(in[:]) return inBig.Mod(inBig, mod).Cmp(scBig) == 0 } if err := quick.Check(f, quickCheckConfig(1024)); err != nil { t.Error(err) } } func TestScalarSetBytesWi(t *testing.T) { // Generated with libsodium.js 1.0.18 crypto...
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Sep 25 19:53:19 GMT 2025 - 642.7K bytes - Click Count (0)