Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for BeUint64 (0.19 sec)

  1. src/os/dir_unix.go

    	case 8:
    		return uint64(byteorder.BeUint64(b))
    	default:
    		panic("syscall: readInt with unsupported size")
    	}
    }
    
    func readIntLE(b []byte, size uintptr) uint64 {
    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    		return uint64(byteorder.LeUint16(b))
    	case 4:
    		return uint64(byteorder.LeUint32(b))
    	case 8:
    		return uint64(byteorder.LeUint64(b))
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/crypto/md5/md5.go

    	b, d.s[3] = consumeUint32(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % BlockSize)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b[0:8])
    }
    
    func consumeUint32(b []byte) ([]byte, uint32) {
    	return b[4:], byteorder.BeUint32(b[0:4])
    }
    
    // New returns a new hash.Hash computing the MD5 checksum. The Hash also
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/crypto/sha256/sha256.go

    	b, d.h[7] = consumeUint32(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % chunk)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b)
    }
    
    func consumeUint32(b []byte) ([]byte, uint32) {
    	return b[4:], byteorder.BeUint32(b)
    }
    
    func (d *digest) Reset() {
    	if !d.is224 {
    		d.h[0] = init0
    		d.h[1] = init1
    		d.h[2] = init2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/crypto/sha1/sha1.go

    	b, d.h[4] = consumeUint32(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % chunk)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b)
    }
    
    func consumeUint32(b []byte) ([]byte, uint32) {
    	return b[4:], byteorder.BeUint32(b)
    }
    
    func (d *digest) Reset() {
    	d.h[0] = init0
    	d.h[1] = init1
    	d.h[2] = init2
    	d.h[3] = init3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/crypto/sha512/sha512.go

    	b, d.h[7] = consumeUint64(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % chunk)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b)
    }
    
    // New returns a new hash.Hash computing the SHA-512 checksum.
    func New() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA512()
    	}
    	d := &digest{function: crypto.SHA512}
    	d.Reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. src/hash/maphash/maphash_purego.go

    }
    
    func rthashString(s string, state uint64) uint64 {
    	return rthash([]byte(s), state)
    }
    
    func randUint64() uint64 {
    	buf := make([]byte, 8)
    	_, _ = rand.Read(buf)
    	return byteorder.LeUint64(buf)
    }
    
    // This is a port of wyhash implementation in runtime/hash64.go,
    // without using unsafe for purego.
    
    const (
    	m1 = 0xa0761d6478bd642f
    	m2 = 0xe7037ed1a0b428db
    	m3 = 0x8ebc6af09c88c6e3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. src/math/big/floatexample_test.go

    package big_test
    
    import (
    	"fmt"
    	"math"
    	"math/big"
    )
    
    func ExampleFloat_Add() {
    	// Operate on numbers of different precision.
    	var x, y, z big.Float
    	x.SetInt64(1000)          // x is automatically set to 64bit precision
    	y.SetFloat64(2.718281828) // y is automatically set to 53bit precision
    	z.SetPrec(32)
    	z.Add(&x, &y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/crypto/ecdh/nist.go

    		bufA[i], bufB[i] = a[len(a)-i-1], b[len(b)-i-1]
    	}
    
    	// Perform a subtraction with borrow.
    	var borrow uint64
    	for i := 0; i < len(bufA); i += 8 {
    		limbA, limbB := byteorder.LeUint64(bufA[i:]), byteorder.LeUint64(bufB[i:])
    		_, borrow = bits.Sub64(limbA, limbB, borrow)
    	}
    
    	// If there is a borrow at the end of the operation, then a < b.
    	return borrow == 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. src/crypto/elliptic/params.go

    // 0) is not on the any of the curves handled here.
    func zForAffine(x, y *big.Int) *big.Int {
    	z := new(big.Int)
    	if x.Sign() != 0 || y.Sign() != 0 {
    		z.SetInt64(1)
    	}
    	return z
    }
    
    // affineFromJacobian reverses the Jacobian transform. See the comment at the
    // top of the file. If the point is ∞ it returns 0, 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. src/syscall/dir_plan9.go

    	return byteorder.LeUint32(b), b[4:]
    }
    
    // gbit64 reads a 64-bit number in little-endian order from b and returns it with the remaining slice of b.
    func gbit64(b []byte) (uint64, []byte) {
    	return byteorder.LeUint64(b), b[8:]
    }
    
    // gstring reads a string from b, prefixed with a 16-bit length in little-endian order.
    // It returns the string with the remaining slice of b and a boolean. If the length is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top