Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fieldReduce (0.07 sec)

  1. lib/fips140/v1.0.0.zip

    barrettMultiplier = 5039 // 2¹² * 2¹² / q barrettShift = 24 // log₂(2¹² * 2¹²) ) // fieldReduce reduces a value a < 2q² using Barrett reduction, to avoid // potentially variable-time division. func fieldReduce(a uint32) fieldElement { quotient := uint32((uint64(a) * barrettMultiplier) >> barrettShift) return fieldReduceOnce(uint16(a - quotient*q)) } func fieldMul(a, b fieldElement) fieldElement { x := uint32(a) * uint32(b) return fieldReduce(x) } // fieldMulSub returns a * (b - c). This operation is fused to save...
    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