Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for p521Sub (0.1 sec)

  1. src/crypto/internal/nistec/fiat/p521.go

    	return e
    }
    
    // Sub sets e = t1 - t2, and returns e.
    func (e *P521Element) Sub(t1, t2 *P521Element) *P521Element {
    	p521Sub(&e.x, &t1.x, &t2.x)
    	return e
    }
    
    // Mul sets e = t1 * t2, and returns e.
    func (e *P521Element) Mul(t1, t2 *P521Element) *P521Element {
    	p521Mul(&e.x, &t1.x, &t2.x)
    	return e
    }
    
    // Square sets e = t * t, and returns e.
    func (e *P521Element) Square(t *P521Element) *P521Element {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/fiat/p521_fiat64.go

    	out1[7] = x46
    	out1[8] = x47
    }
    
    // p521Sub subtracts two field elements in the Montgomery domain.
    //
    // Preconditions:
    //
    //	0 ≤ eval arg1 < m
    //	0 ≤ eval arg2 < m
    //
    // Postconditions:
    //
    //	eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) - eval (from_montgomery arg2)) mod m
    //	0 ≤ eval out1 < m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 167K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p521.go

    	z3 := new(fiat.P521Element).Mul(p521B(), t2) // Z3 := b * t2
    	x3.Sub(y3, z3)                               // X3 := Y3 - Z3
    	z3.Add(x3, x3)                               // Z3 := X3 + X3
    	x3.Add(x3, z3)                               // X3 := X3 + Z3
    	z3.Sub(t1, x3)                               // Z3 := t1 - X3
    	x3.Add(t1, x3)                               // X3 := t1 + X3
    	y3.Mul(p521B(), y3)                          // Y3 := b * Y3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 17K bytes
    - Viewed (0)
Back to top