Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 61 of 61 for NEG (0.01 sec)

  1. src/crypto/elliptic/elliptic.go

    	if x.Cmp(p) >= 0 {
    		return nil, nil
    	}
    	// y² = x³ - 3x + b
    	y = curve.Params().polynomial(x)
    	y = y.ModSqrt(y, p)
    	if y == nil {
    		return nil, nil
    	}
    	if byte(y.Bit(0)) != data[0]&1 {
    		y.Neg(y).Mod(y, p)
    	}
    	if !curve.IsOnCurve(x, y) {
    		return nil, nil
    	}
    	return
    }
    
    func panicIfNotOnCurve(curve Curve, x, y *big.Int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top