Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestZetas (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. lib/fips140/v1.0.0-c2097c7c.zip

    if n>>7 != 0 { panic("not 7 bits") } var r uint8 r |= n >> 6 & 0b0000_0001 r |= n >> 4 & 0b0000_0010 r |= n >> 2 & 0b0000_0100 r |= n /**/ & 0b0000_1000 r |= n << 2 & 0b0001_0000 r |= n << 4 & 0b0010_0000 r |= n << 6 & 0b0100_0000 return r } func TestZetas(t *testing.T) { ζ := big.NewInt(17) q := big.NewInt(q) for k, zeta := range zetas { // ζ^BitRev7(k) mod q exp := new(big.Int).Exp(ζ, big.NewInt(int64(BitRev7(uint8(k)))), q) if big.NewInt(int64(zeta)).Cmp(exp) != 0 { t.Errorf("zetas[%d] = %v, expected...
    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)
Back to Top