- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for PutUint32 (0.04 seconds)
-
internal/hash/crc.go
v := crc32Combine(crc32.IEEE, binary.BigEndian.Uint32(c.Raw), binary.BigEndian.Uint32(other.Raw), size) binary.BigEndian.PutUint32(c.Raw, v) case ChecksumCRC32C: v := crc32Combine(crc32.Castagnoli, binary.BigEndian.Uint32(c.Raw), binary.BigEndian.Uint32(other.Raw), size) binary.BigEndian.PutUint32(c.Raw, v) case ChecksumCRC64NVME:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Jan 20 14:49:07 GMT 2025 - 5.8K bytes - Click Count (0) -
internal/config/crypto.go
}) if err != nil { return nil, err } if len(metadata) > MaxMetadataSize { return nil, errors.New("config: encryption metadata is too large") } header[0] = Version binary.LittleEndian.PutUint32(header[1:], uint32(len(metadata))) buffer.Write(header[:]) buffer.Write(metadata) return io.MultiReader( &buffer, stream.EncryptReader(plaintext, nonce, nil), ), nil }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 16 14:27:42 GMT 2025 - 4.7K bytes - Click Count (0) -
internal/crypto/key.go
} return nil } // DerivePartKey derives an unique 256 bit key from an ObjectKey and the part index. func (key ObjectKey) DerivePartKey(id uint32) (partKey [32]byte) { var bin [4]byte binary.LittleEndian.PutUint32(bin[:], id) mac := hmac.New(sha256.New, key[:]) mac.Write(bin[:]) mac.Sum(partKey[:0]) return partKey } // SealETag seals the etag using the object key.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 16 14:27:42 GMT 2025 - 6.2K bytes - Click Count (0) -
cmd/xl-storage-format-v1.go
if bts, err := c.MarshalMsg(metaDataPoolGet()); err == nil { crc ^= xxhash.Sum64(bts) metaDataPoolPut(bts) } // Combine upper and lower part var tmp [4]byte binary.LittleEndian.PutUint32(tmp[:], uint32(crc^(crc>>32))) return tmp } // XL metadata constants. const ( // XL meta version. xlMetaVersion101 = "1.0.1" // XL meta version. xlMetaVersion100 = "1.0.0"
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Oct 22 15:30:50 GMT 2024 - 8.4K bytes - Click Count (0)