Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 66 for Qinv (0.26 sec)

  1. src/crypto/ecdsa/ecdsa.go

    	// SEC 1, Version 2.0, Section 4.1.3
    
    	k, R, err := randomPoint(c, csprng)
    	if err != nil {
    		return nil, err
    	}
    
    	// kInv = k⁻¹
    	kInv := bigmod.NewNat()
    	inverse(c, kInv, k)
    
    	Rx, err := R.BytesX()
    	if err != nil {
    		return nil, err
    	}
    	r, err := bigmod.NewNat().SetOverflowingBytes(Rx, c.N)
    	if err != nil {
    		return nil, err
    	}
    
    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/internal/diff/diff.go

    	//	yi[i] = increasing indexes of unique strings in y.
    	//	inv[i] = index j such that x[xi[i]] = y[yi[j]].
    	var xi, yi, inv []int
    	for i, s := range y {
    		if m[s] == -1+-4 {
    			m[s] = len(yi)
    			yi = append(yi, i)
    		}
    	}
    	for i, s := range x {
    		if j, ok := m[s]; ok && j >= 0 {
    			xi = append(xi, i)
    			inv = append(inv, j)
    		}
    	}
    
    	// Apply Algorithm A from Szymanski's paper.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p256.go

    }
    
    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)
  4. src/crypto/internal/nistec/generate.go

    }
    
    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)
  5. src/crypto/internal/edwards25519/edwards25519.go

    	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
    }
    
    var feOne = new(field.Element).One()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. src/crypto/ecdsa/ecdsa_legacy.go

    	c := priv.Curve
    
    	// SEC 1, Version 2.0, Section 4.1.3
    	N := c.Params().N
    	if N.Sign() == 0 {
    		return nil, errZeroParam
    	}
    	var k, kInv, r, s *big.Int
    	for {
    		for {
    			k, err = randFieldElement(c, csprng)
    			if err != nil {
    				return nil, err
    			}
    
    			kInv = new(big.Int).ModInverse(k, N)
    
    			r, _ = c.ScalarBaseMult(k.Bytes())
    			r.Mod(r, N)
    			if r.Sign() != 0 {
    				break
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. src/archive/tar/strconv.go

    		// If the number is negative, we use an inversion mask to invert the
    		// data bytes and treat the value as an unsigned number.
    		var inv byte // 0x00 if positive or zero, 0xff if negative
    		if b[0]&0x40 != 0 {
    			inv = 0xff
    		}
    
    		var x uint64
    		for i, c := range b {
    			c ^= inv // Inverts c only if inv is 0xff, otherwise does nothing
    			if i == 0 {
    				c &= 0x7f // Ignore signal bit in first byte
    			}
    			if (x >> 56) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. src/crypto/elliptic/params.go

    	if z.Sign() == 0 {
    		return new(big.Int), new(big.Int)
    	}
    
    	zinv := new(big.Int).ModInverse(z, curve.P)
    	zinvsq := new(big.Int).Mul(zinv, zinv)
    
    	xOut = new(big.Int).Mul(x, zinvsq)
    	xOut.Mod(xOut, curve.P)
    	zinvsq.Mul(zinvsq, zinv)
    	yOut = new(big.Int).Mul(y, zinvsq)
    	yOut.Mod(yOut, curve.P)
    	return
    }
    
    // Add implements [Curve.Add].
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/riscv/anames.go

    	"MIN",
    	"MINU",
    	"SEXTB",
    	"SEXTH",
    	"ZEXTH",
    	"ROL",
    	"ROLW",
    	"ROR",
    	"RORI",
    	"RORIW",
    	"RORW",
    	"ORCB",
    	"REV8",
    	"BCLR",
    	"BCLRI",
    	"BEXT",
    	"BEXTI",
    	"BINV",
    	"BINVI",
    	"BSET",
    	"BSETI",
    	"WORD",
    	"BEQZ",
    	"BGEZ",
    	"BGT",
    	"BGTU",
    	"BGTZ",
    	"BLE",
    	"BLEU",
    	"BLEZ",
    	"BLTZ",
    	"BNEZ",
    	"FABSD",
    	"FABSS",
    	"FNEGD",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:19:33 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. pilot/pkg/model/context.go

    // To compare only on major, call this function with { X, -1, -1}.
    // to compare only on major & minor, call this function with {X, Y, -1}.
    func (pversion *IstioVersion) Compare(inv *IstioVersion) int {
    	// check major
    	if r := compareVersion(pversion.Major, inv.Major); r != 0 {
    		return r
    	}
    
    	// check minor
    	if inv.Minor > -1 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (1)
Back to top