Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 670 for big4 (1.27 sec)

  1. src/crypto/rsa/boring.go

    	for i, p := range k.Primes {
    		dst.Primes[i] = new(big.Int).Set(p)
    	}
    	if x := k.Precomputed.Dp; x != nil {
    		dst.Precomputed.Dp = new(big.Int).Set(x)
    	}
    	if x := k.Precomputed.Dq; x != nil {
    		dst.Precomputed.Dq = new(big.Int).Set(x)
    	}
    	if x := k.Precomputed.Qinv; x != nil {
    		dst.Precomputed.Qinv = new(big.Int).Set(x)
    	}
    	return dst
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/lookup2.go

    // instead we use the big.Float and ast.File types as they provide a suitable mix of exported and un-
    // exported fields and methods.
    
    func _() {
    	var x *big.Float
    	_ = x.Neg  // OK
    	_ = x.NeG  // ERROR "x.NeG undefined (type *big.Float has no field or method NeG, but does have method Neg)"
    	_ = x.Form // ERROR "x.Form undefined (type *big.Float has no field or method Form, but does have unexported field form)"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/crypto/ecdsa/ecdsa_legacy.go

    // [SignASN1] instead of dealing directly with r, s.
    func Sign(rand io.Reader, priv *PrivateKey, hash []byte) (r, s *big.Int, err error) {
    	sig, err := SignASN1(rand, priv, hash)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	r, s = new(big.Int), new(big.Int)
    	var inner cryptobyte.String
    	input := cryptobyte.String(sig)
    	if !input.ReadASN1(&inner, asn1.SEQUENCE) ||
    		!input.Empty() ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/crypto/elliptic/elliptic.go

    	IsOnCurve(x, y *big.Int) bool
    
    	// Add returns the sum of (x1,y1) and (x2,y2).
    	//
    	// Deprecated: this is a low-level unsafe API.
    	Add(x1, y1, x2, y2 *big.Int) (x, y *big.Int)
    
    	// Double returns 2*(x,y).
    	//
    	// Deprecated: this is a low-level unsafe API.
    	Double(x1, y1 *big.Int) (x, y *big.Int)
    
    	// ScalarMult returns k*(x,y) where k is an integer in big-endian form.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/inline/inlheur/testdata/dumpscores.go

    	if x > 101 {
    		// Drive up the cost of inlining this func over the
    		// regular threshold.
    		return big(big(big(big(big(G + x)))))
    	}
    	if x < 100 {
    		// make sure this callsite is scored properly
    		G += inlinable(101, inlinable2)
    		if G == 101 {
    			return 0
    		}
    		panic(inlinable2(3))
    	}
    	return G
    }
    
    func big(q int) int {
    	return noninl(q) + noninl(-q)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 14:26:26 UTC 2023
    - 794 bytes
    - Viewed (0)
  6. src/crypto/x509/oid.go

    	}
    	return dst
    }
    
    func base128BigIntLength(n *big.Int) int {
    	if n.Cmp(big.NewInt(0)) == 0 {
    		return 1
    	}
    	return (n.BitLen() + 6) / 7
    }
    
    func appendBase128BigInt(dst []byte, n *big.Int) []byte {
    	if n.Cmp(big.NewInt(0)) == 0 {
    		return append(dst, 0)
    	}
    
    	for i := base128BigIntLength(n) - 1; i >= 0; i-- {
    		o := byte(big.NewInt(0).Rsh(n, uint(i)*7).Bits()[0])
    		o &= 0x7f
    		if i != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. test/fixedbugs/issue20780.go

    	// improve the backend to spill temporaries to the heap, this
    	// test will probably need updating to find some new way to
    	// construct an overly large stack frame.
    	g(h(), h())
    }
    
    func g(Big, Big)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jan 10 08:01:49 UTC 2021
    - 755 bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/lookup1.go

    }
    
    func _() {
    	var x big.Float
    	_ = x.neg // ERROR "x.neg undefined (type big.Float has no field or method neg, but does have method Neg)"
    	_ = x.nEg // ERROR "x.nEg undefined (type big.Float has no field or method nEg)"
    	_ = x.Neg
    	_ = x.NEg // ERROR "x.NEg undefined (type big.Float has no field or method NEg, but does have method Neg)"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/nistec_test.go

    	t.Run("1", func(t *testing.T) {
    		checkScalar(t, big.NewInt(1).FillBytes(make([]byte, byteLen)))
    	})
    	t.Run("N-1", func(t *testing.T) {
    		checkScalar(t, new(big.Int).Sub(c.Params().N, big.NewInt(1)).Bytes())
    	})
    	t.Run("N", func(t *testing.T) { checkScalar(t, c.Params().N.Bytes()) })
    	t.Run("N+1", func(t *testing.T) {
    		checkScalar(t, new(big.Int).Add(c.Params().N, big.NewInt(1)).Bytes())
    	})
    	t.Run("all1s", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 18:48:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. misc/cgo/gmp/fib.go

    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    func fibber(c chan *big.Int, out chan string, n int64) {
    	// Keep the fibbers in dedicated operating system
    	// threads, so that this program tests coordination
    	// between pthreads and not just goroutines.
    	runtime.LockOSThread()
    
    	i := big.NewInt(n)
    	if n == 0 {
    		c <- i
    	}
    	for {
    		j := <-c
    		out <- j.String()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 919 bytes
    - Viewed (0)
Back to top