Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for blockSize (0.18 sec)

  1. pkg/util/tail/tail.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package tail
    
    import (
    	"io"
    	"os"
    )
    
    const (
    	// blockSize is the block size used in tail.
    	blockSize = 1024
    )
    
    // ReadAtMost reads at most max bytes from the end of the file identified by path or
    // returns an error. It returns true if the file was longer than max. It will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/crypto/sha256/sha256.go

    	crypto.RegisterHash(crypto.SHA256, New)
    }
    
    // The size of a SHA256 checksum in bytes.
    const Size = 32
    
    // The size of a SHA224 checksum in bytes.
    const Size224 = 28
    
    // The blocksize of SHA256 and SHA224 in bytes.
    const BlockSize = 64
    
    const (
    	chunk     = 64
    	init0     = 0x6A09E667
    	init1     = 0xBB67AE85
    	init2     = 0x3C6EF372
    	init3     = 0xA54FF53A
    	init4     = 0x510E527F
    	init5     = 0x9B05688C
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/os/dir_unix.go

    	bufp int     // location of next record in buf.
    }
    
    const (
    	// More than 5760 to work around https://golang.org/issue/24015.
    	blockSize = 8192
    )
    
    var dirBufPool = sync.Pool{
    	New: func() any {
    		// The buffer must be at least a block long.
    		buf := make([]byte, blockSize)
    		return &buf
    	},
    }
    
    func (d *dirInfo) close() {
    	if d.buf != nil {
    		dirBufPool.Put(d.buf)
    		d.buf = nil
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/crypto/sha512/sha512.go

    	// Size256 is the size, in bytes, of a SHA-512/256 checksum.
    	Size256 = 32
    
    	// Size384 is the size, in bytes, of a SHA-384 checksum.
    	Size384 = 48
    
    	// BlockSize is the block size, in bytes, of the SHA-512/224,
    	// SHA-512/256, SHA-384 and SHA-512 hash functions.
    	BlockSize = 128
    )
    
    const (
    	chunk     = 128
    	init0     = 0x6a09e667f3bcc908
    	init1     = 0xbb67ae8584caa73b
    	init2     = 0x3c6ef372fe94f82b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. src/crypto/md5/gen.go

    import (
    	"internal/byteorder"
    	"math/bits"
    )
    
    func blockGeneric(dig *digest, p []byte) {
    	// load state
    	a, b, c, d := dig.s[0], dig.s[1], dig.s[2], dig.s[3]
    
    	for i := 0; i <= len(p)-BlockSize; i += BlockSize {
    		// eliminate bounds checks on p
    		q := p[i:]
    		q = q[:BlockSize:BlockSize]
    
    		// save current state
    		aa, bb, cc, dd := a, b, c, d
    
    		// load input block
    		{{range $i := seq 16 -}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/crypto/sha3/sha3.go

    	// Specific to SHA-3 and SHAKE.
    	outputLen int             // the default output size in bytes
    	state     spongeDirection // whether the sponge is absorbing or squeezing
    }
    
    // BlockSize returns the rate of sponge underlying this hash function.
    func (d *state) BlockSize() int { return d.rate }
    
    // Size returns the output size of the hash function in bytes.
    func (d *state) Size() int { return d.outputLen }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/crypto/aes/gcm_ppc64x.go

    // details.
    func (g *gcmAsm) Seal(dst, nonce, plaintext, data []byte) []byte {
    	if len(nonce) != g.nonceSize {
    		panic("cipher: incorrect nonce length given to GCM")
    	}
    	if uint64(len(plaintext)) > ((1<<32)-2)*BlockSize {
    		panic("cipher: message too large for GCM")
    	}
    
    	ret, out := sliceForAppend(dst, len(plaintext)+g.tagSize)
    
    	var counter, tagMask [gcmBlockSize]byte
    	g.deriveCounter(&counter, nonce)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/crypto/md5/md5block.go

    package md5
    
    import (
    	"internal/byteorder"
    	"math/bits"
    )
    
    func blockGeneric(dig *digest, p []byte) {
    	// load state
    	a, b, c, d := dig.s[0], dig.s[1], dig.s[2], dig.s[3]
    
    	for i := 0; i <= len(p)-BlockSize; i += BlockSize {
    		// eliminate bounds checks on p
    		q := p[i:]
    		q = q[:BlockSize:BlockSize]
    
    		// save current state
    		aa, bb, cc, dd := a, b, c, d
    
    		// load input block
    		x0 := byteorder.LeUint32(q[4*0x0:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/crypto/sha3/sha3_s390x.go

    func (s *asmState) Size() int {
    	return s.outputLen
    }
    
    // BlockSize returns the hash's underlying block size.
    // The Write method must be able to accept any amount
    // of data, but it may operate more efficiently if all writes
    // are a multiple of the block size.
    func (s *asmState) BlockSize() int {
    	return s.rate
    }
    
    // Clone returns a copy of the ShakeHash in its current state.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. src/hash/adler32/adler32.go

    // state of the hash.
    func New() hash.Hash32 {
    	d := new(digest)
    	d.Reset()
    	return d
    }
    
    func (d *digest) Size() int { return Size }
    
    func (d *digest) BlockSize() int { return 4 }
    
    const (
    	magic         = "adl\x01"
    	marshaledSize = len(magic) + 4
    )
    
    func (d *digest) MarshalBinary() ([]byte, error) {
    	b := make([]byte, 0, marshaledSize)
    	b = append(b, magic...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top