Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nMinus2 (0.15 sec)

  1. src/crypto/ecdsa/ecdsa.go

    			}
    			return
    		}
    	}
    
    	// Calculate the inverse of s in GF(N) using Fermat's method
    	// (exponentiation modulo P - 2, per Euler's theorem)
    	kInv.Exp(k, c.nMinus2, c.N)
    }
    
    // hashToNat sets e to the left-most bits of hash, according to
    // SEC 1, Section 4.1.3, point 5 and Section 4.1.4, point 3.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. src/encoding/asn1/marshal.go

    		// form. So we'll invert and subtract 1. If the
    		// most-significant-bit isn't set then we'll need to pad the
    		// beginning with 0xff in order to keep the number negative.
    		nMinus1 := new(big.Int).Neg(n)
    		nMinus1.Sub(nMinus1, bigOne)
    		bytes := nMinus1.Bytes()
    		for i := range bytes {
    			bytes[i] ^= 0xff
    		}
    		if len(bytes) == 0 || bytes[0]&0x80 == 0 {
    			return multiEncoder([]encoder{byteFFEncoder, bytesEncoder(bytes)}), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top