- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 78 for BeUint64 (0.11 sec)
-
src/hash/fnv/fnv.go
} *s = sum64(byteorder.BeUint64(b[4:])) return nil } func (s *sum64a) UnmarshalBinary(b []byte) error { if len(b) < len(magic64a) || string(b[:len(magic64a)]) != magic64a { return errors.New("hash/fnv: invalid hash state identifier") } if len(b) != marshaledSize64 { return errors.New("hash/fnv: invalid hash state size") } *s = sum64a(byteorder.BeUint64(b[4:])) return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 22:36:41 UTC 2024 - 8.5K bytes - Viewed (0) -
src/crypto/aes/ctr_s390x.go
func (c *aesCipherAsm) NewCTR(iv []byte) cipher.Stream { if len(iv) != BlockSize { panic("cipher.NewCTR: IV length must equal block size") } var ac aesctr ac.block = c ac.ctr[0] = byteorder.BeUint64(iv[0:]) // high bits ac.ctr[1] = byteorder.BeUint64(iv[8:]) // low bits ac.buffer = ac.storage[:0] return &ac } func (c *aesctr) refill() { // Fill up the buffer with an incrementing count. c.buffer = c.storage[:streamBufferSize]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 2.4K bytes - Viewed (0) -
src/hash/crc64/crc64.go
} if len(b) != marshaledSize { return errors.New("hash/crc64: invalid hash state size") } if tableSum(d.tab) != byteorder.BeUint64(b[4:]) { return errors.New("hash/crc64: tables do not match") } d.crc = byteorder.BeUint64(b[12:]) return nil } func update(crc uint64, tab *Table, p []byte) uint64 { buildSlicing8TablesOnce() crc = ^crc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 22:36:41 UTC 2024 - 5.2K bytes - Viewed (0) -
src/math/rand/v2/pcg.go
func (p *PCG) UnmarshalBinary(data []byte) error { if len(data) != 20 || string(data[:4]) != "pcg:" { return errUnmarshalPCG } p.hi = byteorder.BeUint64(data[4:]) p.lo = byteorder.BeUint64(data[4+8:]) return nil } func (p *PCG) next() (hi, lo uint64) { // https://github.com/imneme/pcg-cpp/blob/428802d1a5/include/pcg_random.hpp#L161 //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:31:58 UTC 2024 - 2.9K bytes - Viewed (0) -
src/crypto/des/cipher.go
} if len(dst) < BlockSize { panic("crypto/des: output not full block") } if alias.InexactOverlap(dst[:BlockSize], src[:BlockSize]) { panic("crypto/des: invalid buffer overlap") } b := byteorder.BeUint64(src) b = permuteInitialBlock(b) left, right := uint32(b>>32), uint32(b) left = (left << 1) | (left >> 31) right = (right << 1) | (right >> 31) for i := 0; i < 8; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 4K bytes - Viewed (0) -
src/syscall/dirent.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:13:24 UTC 2024 - 2.4K bytes - Viewed (0) -
src/crypto/aes/gcm_ppc64x.go
c.Encrypt(hle, hle) // Reverse the bytes in each 8 byte chunk // Load little endian, store big endian if runtime.GOARCH == "ppc64le" { h1 = byteorder.LeUint64(hle[:8]) h2 = byteorder.LeUint64(hle[8:]) } else { h1 = byteorder.BeUint64(hle[:8]) h2 = byteorder.BeUint64(hle[8:]) } byteorder.BePutUint64(hle[:8], h1) byteorder.BePutUint64(hle[8:], h2) gcmInit(&g.productTable, hle) return g, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 6.4K bytes - Viewed (0) -
src/internal/byteorder/byteorder.go
b[2] = byte(v >> 16) b[3] = byte(v >> 24) } func LeAppendUint32(b []byte, v uint32) []byte { return append(b, byte(v), byte(v>>8), byte(v>>16), byte(v>>24), ) } func LeUint64(b []byte) uint64 { _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 |
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 20:31:29 UTC 2024 - 3.5K bytes - Viewed (0) -
src/crypto/cipher/gcm.go
// would expect, say, 4*key to be in index 4 of the table but due to // this bit ordering it will actually be in index 0010 (base 2) = 2. x := gcmFieldElement{ byteorder.BeUint64(key[:8]), byteorder.BeUint64(key[8:]), } g.productTable[reverseBits(1)] = x for i := 2; i < 16; i += 2 { g.productTable[reverseBits(i)] = gcmDouble(&g.productTable[reverseBits(i/2)])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 13.7K bytes - Viewed (0) -
src/crypto/des/block.go
// license that can be found in the LICENSE file. package des import ( "internal/byteorder" "sync" ) func cryptBlock(subkeys []uint64, dst, src []byte, decrypt bool) { b := byteorder.BeUint64(src) b = permuteInitialBlock(b) left, right := uint32(b>>32), uint32(b) left = (left << 1) | (left >> 31) right = (right << 1) | (right >> 31) if decrypt { for i := 0; i < 8; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 6.5K bytes - Viewed (0)