Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEncodeDecode (0.43 sec)

  1. lib/fips140/v1.0.0.zip

    uint8(d)) if result != expected { t.Errorf("decompress(%d, %d): got %d, expected %d", n, d, result, expected) } } } } func randomRingElement() ringElement { var r ringElement for i := range r { r[i] = fieldElement(mathrand.IntN(q)) } return r } func TestEncodeDecode(t *testing.T) { f := randomRingElement() b := make([]byte, 12*n/8) rand.Read(b) // Compare ringCompressAndEncod to ringCompressAndEncod. e1 := ringCompressAndEncod(nil, f, 10) e2 := ringCompressAndEncod(nil, f) if !bytes.Equal(e1, e2) { t.Er...
    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