Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bigIntFromLittleEndi (0.12 sec)

  1. lib/fips140/v1.0.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...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top