Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for p384Sub (0.19 sec)

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

    	return e
    }
    
    // Sub sets e = t1 - t2, and returns e.
    func (e *P384Element) Sub(t1, t2 *P384Element) *P384Element {
    	p384Sub(&e.x, &t1.x, &t2.x)
    	return e
    }
    
    // Mul sets e = t1 * t2, and returns e.
    func (e *P384Element) Mul(t1, t2 *P384Element) *P384Element {
    	p384Mul(&e.x, &t1.x, &t2.x)
    	return e
    }
    
    // Square sets e = t * t, and returns e.
    func (e *P384Element) Square(t *P384Element) *P384Element {
    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/p384_fiat64.go

    	out1[4] = x31
    	out1[5] = x32
    }
    
    // p384Sub 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
    - 90.8K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p384.go

    	z3 := new(fiat.P384Element).Mul(p384B(), 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(p384B(), y3)                          // Y3 := b * Y3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 18K bytes
    - Viewed (0)
Back to top