Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 423 for bigN (0.24 sec)

  1. src/crypto/internal/boring/ecdh.go

    	big := C._goboringcrypto_BN_new()
    	defer C._goboringcrypto_BN_free(big)
    	if C._goboringcrypto_EC_POINT_get_affine_coordinates_GFp(group, pt, big, nil, nil) == 0 {
    		return nil, fail("EC_POINT_get_affine_coordinates_GFp")
    	}
    	return bigBytesECDH(curve, big)
    }
    
    func bigBytesECDH(curve string, big *C.GO_BIGNUM) ([]byte, error) {
    	out := make([]byte, curveSize(curve))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. src/math/big/intmarsh.go

    }
    
    // UnmarshalText implements the [encoding.TextUnmarshaler] interface.
    func (z *Int) UnmarshalText(text []byte) error {
    	if _, ok := z.setFromScanner(bytes.NewReader(text), 0); !ok {
    		return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Int", text)
    	}
    	return nil
    }
    
    // The JSON marshalers are only here for API backward compatibility
    // (programs that explicitly look for these two methods). JSON works
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/route_cache.go

    		h.WriteString(efk)
    		h.Write(Separator)
    	}
    	h.Write(Separator)
    
    	return h.Sum64()
    }
    
    func hashToBytes(number model.ConfigHash) []byte {
    	big := new(big.Int)
    	big.SetUint64(uint64(number))
    	return big.Bytes()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/crypto/internal/boring/doc.go

    //
    // BoringCrypto is only available on linux/amd64 and linux/arm64 systems.
    const Enabled = available
    
    // A BigInt is the raw words from a BigInt.
    // This definition allows us to avoid importing math/big.
    // Conversion between BigInt and *big.Int is in crypto/internal/boring/bbig.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 05:28:51 UTC 2023
    - 826 bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    }
    
    // AddUint32 appends a big-endian, 32-bit value to the byte string.
    func (b *Builder) AddUint32(v uint32) {
    	b.add(byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
    }
    
    // AddUint48 appends a big-endian, 48-bit value to the byte string.
    func (b *Builder) AddUint48(v uint64) {
    	b.add(byte(v>>40), byte(v>>32), byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
    }
    
    // AddUint64 appends a big-endian, 64-bit value to the byte string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/string_utils.cc

      // of small endian, as documented in the header). This will protentially break
      // when TFLite is ported to big endian platforms.
      // TODO(b/165919229): This code will need changing if/when we port to a
      // big-endian platform.
      memcpy(*buffer, &num_strings, sizeof(int32_t));
    
      // Set offset of strings.
      int32_t start = sizeof(int32_t) * (num_strings + 2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/hash/fnv/fnv.go

    func New64() hash.Hash64 {
    	var s sum64 = offset64
    	return &s
    }
    
    // New64a returns a new 64-bit FNV-1a [hash.Hash].
    // Its Sum method will lay the value out in big-endian byte order.
    func New64a() hash.Hash64 {
    	var s sum64a = offset64
    	return &s
    }
    
    // New128 returns a new 128-bit FNV-1 [hash.Hash].
    // Its Sum method will lay the value out in big-endian byte order.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/field/fe_test.go

    	return v
    }
    
    func (v *Element) fromDecimal(s string) *Element {
    	n, ok := new(big.Int).SetString(s, 10)
    	if !ok {
    		panic("not a valid decimal: " + s)
    	}
    	return v.fromBig(n)
    }
    
    // toBig returns v as a big.Int.
    func (v *Element) toBig() *big.Int {
    	buf := v.Bytes()
    
    	words := make([]big.Word, 32*8/bits.UintSize)
    	for n := range words {
    		for i := 0; i < bits.UintSize; i += 8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  9. src/math/big/ratmarsh.go

    func (z *Rat) UnmarshalText(text []byte) error {
    	// TODO(gri): get rid of the []byte/string conversion
    	if _, ok := z.SetString(string(text)); !ok {
    		return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Rat", text)
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. src/crypto/ecdsa/ecdsa.go

    func (curve *nistCurve[Point]) pointToAffine(p Point) (x, y *big.Int, err error) {
    	out := p.Bytes()
    	if len(out) == 1 && out[0] == 0 {
    		// This is the encoding of the point at infinity.
    		return nil, nil, errors.New("ecdsa: public key point is the infinity")
    	}
    	byteLen := (curve.curve.Params().BitSize + 7) / 8
    	x = new(big.Int).SetBytes(out[1 : 1+byteLen])
    	y = new(big.Int).SetBytes(out[1+byteLen:])
    	return x, y, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top