Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 740 for gbyte (0.04 sec)

  1. src/syscall/dir_plan9.go

    	return &d, nil
    }
    
    // pbit8 copies the 8-bit number v to b and returns the remaining slice of b.
    func pbit8(b []byte, v uint8) []byte {
    	b[0] = byte(v)
    	return b[1:]
    }
    
    // pbit16 copies the 16-bit number v to b in little-endian order and returns the remaining slice of b.
    func pbit16(b []byte, v uint16) []byte {
    	byteorder.LePutUint16(b, v)
    	return b[2:]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/crypto/internal/mlkem768/mlkem768.go

    //
    // The shared key must be kept secret.
    func Encapsulate(encapsulationKey []byte) (ciphertext, sharedKey []byte, err error) {
    	// The actual logic is in a separate function to outline this allocation.
    	var cc [CiphertextSize]byte
    	return encapsulate(&cc, encapsulationKey)
    }
    
    func encapsulate(cc *[CiphertextSize]byte, encapsulationKey []byte) (ciphertext, sharedKey []byte, err error) {
    	if len(encapsulationKey) != EncapsulationKeySize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  3. src/encoding/asn1/marshal.go

    func makeUTF8String(s string) encoder {
    	return stringEncoder(s)
    }
    
    func appendTwoDigits(dst []byte, v int) []byte {
    	return append(dst, byte('0'+(v/10)%10), byte('0'+v%10))
    }
    
    func appendFourDigits(dst []byte, v int) []byte {
    	return append(dst,
    		byte('0'+(v/1000)%10),
    		byte('0'+(v/100)%10),
    		byte('0'+(v/10)%10),
    		byte('0'+v%10))
    }
    
    func outsideUTCRange(t time.Time) bool {
    	year := t.Year()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. src/hash/crc64/crc64.go

    func (d *digest) Sum(in []byte) []byte {
    	s := d.Sum64()
    	return append(in, byte(s>>56), byte(s>>48), byte(s>>40), byte(s>>32), byte(s>>24), byte(s>>16), byte(s>>8), byte(s))
    }
    
    // Checksum returns the CRC-64 checksum of data
    // using the polynomial represented by the [Table].
    func Checksum(data []byte, tab *Table) uint64 { return update(0, tab, data) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typestring.go

    		}
    		sort.Strings(termHashes)
    		if !first {
    			w.byte(';')
    		}
    		w.string(strings.Join(termHashes, "|"))
    	}
    }
    
    func (w *typeWriter) typeList(list []Type) {
    	w.byte('[')
    	for i, typ := range list {
    		if i > 0 {
    			w.byte(',')
    		}
    		w.typ(typ)
    	}
    	w.byte(']')
    }
    
    func (w *typeWriter) tParamList(list []*TypeParam) {
    	w.byte('[')
    	var prev Type
    	for i, tpar := range list {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. 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)
  7. internal/grid/grid_test.go

    	local := grid.Managers[0]
    
    	// 1: Echo
    	errFatal(local.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("1: server payload: ", len(payload), "bytes.")
    		return append([]byte{}, payload...), nil
    	}))
    	// 2: Return as error
    	errFatal(local.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("2: server payload: ", len(payload), "bytes.")
    		err := RemoteErr(payload)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. src/crypto/ecdh/nist.go

    	name        string
    	newPoint    func() Point
    	scalarOrder []byte
    }
    
    // nistPoint is a generic constraint for the nistec Point types.
    type nistPoint[T any] interface {
    	Bytes() []byte
    	BytesX() ([]byte, error)
    	SetBytes([]byte) (T, error)
    	ScalarMult(T, []byte) (T, error)
    	ScalarBaseMult([]byte) (T, error)
    }
    
    func (c *nistCurve[Point]) String() string {
    	return c.name
    }
    
    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/hash/crc32/crc32.go

    }
    
    func (d *digest) Sum32() uint32 { return d.crc }
    
    func (d *digest) Sum(in []byte) []byte {
    	s := d.Sum32()
    	return append(in, byte(s>>24), byte(s>>16), byte(s>>8), byte(s))
    }
    
    // Checksum returns the CRC-32 checksum of data
    // using the polynomial represented by the [Table].
    func Checksum(data []byte, tab *Table) uint32 { return Update(0, tab, data) }
    
    // ChecksumIEEE returns the CRC-32 checksum of data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. src/crypto/tls/key_agreement.go

    	}
    	ckx := new(clientKeyExchangeMsg)
    	ckx.ciphertext = make([]byte, len(encrypted)+2)
    	ckx.ciphertext[0] = byte(len(encrypted) >> 8)
    	ckx.ciphertext[1] = byte(len(encrypted))
    	copy(ckx.ciphertext[2:], encrypted)
    	return preMasterSecret, ckx, nil
    }
    
    // sha1Hash calculates a SHA1 hash over the given byte slices.
    func sha1Hash(slices [][]byte) []byte {
    	hsha1 := sha1.New()
    	for _, slice := range slices {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top