Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for P256OrdInverse (0.27 sec)

  1. src/crypto/ecdsa/ecdsa.go

    	if c.curve.Params().Name == "P-256" {
    		kBytes, err := nistec.P256OrdInverse(k.Bytes(c.N))
    		// Some platforms don't implement P256OrdInverse, and always return an error.
    		if err == nil {
    			_, err := kInv.SetBytes(kBytes, c.N)
    			if err != nil {
    				panic("ecdsa: internal error: P256OrdInverse produced an invalid value")
    			}
    			return
    		}
    	}
    
    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/crypto/internal/nistec/p256_asm.go

    func (p *P256Point) SetBytes(b []byte) (*P256Point, error) {
    	// p256Mul operates in the Montgomery domain with R = 2²⁵⁶ mod p. Thus rr
    	// here is R in the Montgomery domain, or R×R mod p. See comment in
    	// P256OrdInverse about how this is used.
    	rr := p256Element{0x0000000000000003, 0xfffffffbffffffff,
    		0xfffffffffffffffe, 0x00000004fffffffd}
    
    	switch {
    	// Point at infinity.
    	case len(b) == 1 && b[0] == 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top