Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for carryPropagate (0.41 sec)

  1. src/crypto/internal/edwards25519/field/fe.go

    // One sets v = 1, and returns v.
    func (v *Element) One() *Element {
    	*v = *feOne
    	return v
    }
    
    // reduce reduces v modulo 2^255 - 19 and returns it.
    func (v *Element) reduce() *Element {
    	v.carryPropagate()
    
    	// After the light reduction we now have a field element representation
    	// v < 2^255 + 2^13 * 19, but need v < 2^255 - 19.
    
    	// If v >= 2^255 - 19, then v + 19 >= 2^255, which would overflow 2^255 - 1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top