Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,177 for Invert (0.15 sec)

  1. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/inst.go

    // Standard conditions.
    type Cond struct {
    	Value  uint8
    	Invert bool
    }
    
    func (Cond) isArg() {}
    
    func (c Cond) String() string {
    	cond31 := c.Value >> 1
    	invert := bool((c.Value & 1) == 1)
    	invert = (invert != c.Invert)
    	switch cond31 {
    	case 0:
    		if invert {
    			return "NE"
    		} else {
    			return "EQ"
    		}
    	case 1:
    		if invert {
    			return "CC"
    		} else {
    			return "CS"
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/field/fe.go

    }
    
    // Negate sets v = -a, and returns v.
    func (v *Element) Negate(a *Element) *Element {
    	return v.Subtract(feZero, a)
    }
    
    // Invert sets v = 1/z mod p, and returns v.
    //
    // If z == 0, Invert returns v = 0.
    func (v *Element) Invert(z *Element) *Element {
    	// Inversion is implemented as exponentiation with exponent p − 2. It uses the
    	// same sequence of 255 squarings and 11 multiplications as [Curve25519].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. src/crypto/internal/edwards25519/field/fe_test.go

    	one := Element{1, 0, 0, 0, 0}
    	var xinv, r Element
    
    	xinv.Invert(&x)
    	r.Multiply(&x, &xinv)
    	r.reduce()
    
    	if one != r {
    		t.Errorf("inversion identity failed, got: %x", r)
    	}
    
    	var bytes [32]byte
    
    	_, err := io.ReadFull(rand.Reader, bytes[:])
    	if err != nil {
    		t.Fatal(err)
    	}
    	x.SetBytes(bytes[:])
    
    	xinv.Invert(&x)
    	r.Multiply(&x, &xinv)
    	r.reduce()
    
    	if one != r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  4. src/crypto/internal/nistec/p384.go

    	return p.bytes(&out)
    }
    
    func (p *P384Point) bytes(out *[1 + 2*p384ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P384Element).Invert(p.z)
    	x := new(fiat.P384Element).Mul(p.x, zinv)
    	y := new(fiat.P384Element).Mul(p.y, zinv)
    
    	buf := append(out[:0], 4)
    	buf = append(buf, x.Bytes()...)
    	buf = append(buf, y.Bytes()...)
    	return buf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 18K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/p224.go

    	return p.bytes(&out)
    }
    
    func (p *P224Point) bytes(out *[1 + 2*p224ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P224Element).Invert(p.z)
    	x := new(fiat.P224Element).Mul(p.x, zinv)
    	y := new(fiat.P224Element).Mul(p.y, zinv)
    
    	buf := append(out[:0], 4)
    	buf = append(buf, x.Bytes()...)
    	buf = append(buf, y.Bytes()...)
    	return buf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  6. src/crypto/internal/nistec/p521.go

    	return p.bytes(&out)
    }
    
    func (p *P521Point) bytes(out *[1 + 2*p521ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P521Element).Invert(p.z)
    	x := new(fiat.P521Element).Mul(p.x, zinv)
    	y := new(fiat.P521Element).Mul(p.y, zinv)
    
    	buf := append(out[:0], 4)
    	buf = append(buf, x.Bytes()...)
    	buf = append(buf, y.Bytes()...)
    	return buf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 17K bytes
    - Viewed (0)
  7. src/crypto/internal/edwards25519/edwards25519.go

    	// rather than happen on the heap.
    	var buf [32]byte
    	return v.bytes(&buf)
    }
    
    func (v *Point) bytes(buf *[32]byte) []byte {
    	checkInitialized(v)
    
    	var zInv, x, y field.Element
    	zInv.Invert(&v.z)       // zInv = 1 / Z
    	x.Multiply(&v.x, &zInv) // x = X / Z
    	y.Multiply(&v.y, &zInv) // y = Y / Z
    
    	out := copyFieldElement(buf, &y)
    	out[31] |= byte(x.IsNegative() << 7)
    	return out
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/p256.go

    	return p.bytes(&out)
    }
    
    func (p *P256Point) bytes(out *[1 + 2*p256ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P256Element).Invert(p.z)
    	x := new(fiat.P256Element).Mul(p.x, zinv)
    	y := new(fiat.P256Element).Mul(p.y, zinv)
    
    	buf := append(out[:0], 4)
    	buf = append(buf, x.Bytes()...)
    	buf = append(buf, y.Bytes()...)
    	return buf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          }
        }
    
        /**
         * Returns the index of the next date character in `input`, or if `invert` the index
         * of the next non-date character in `input`.
         */
        private fun dateCharacterOffset(
          input: String,
          pos: Int,
          limit: Int,
          invert: Boolean,
        ): Int {
          for (i in pos until limit) {
            val c = input[i].code
            val dateCharacter = (
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/generate.go

    	return p.bytes(&out)
    }
    
    func (p *{{.P}}Point) bytes(out *[1+2*{{.p}}ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new({{.Element}}).Invert(p.z)
    	x := new({{.Element}}).Mul(p.x, zinv)
    	y := new({{.Element}}).Mul(p.y, zinv)
    
    	buf := append(out[:0], 4)
    	buf = append(buf, x.Bytes()...)
    	buf = append(buf, y.Bytes()...)
    	return buf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top