Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Squeeze (0.08 sec)

  1. src/vendor/golang.org/x/crypto/sha3/sha3.go

    	for len(out) > 0 {
    		n := copy(out, d.storage[d.i:d.n])
    		d.i += n
    		out = out[n:]
    
    		// Apply the permutation if we've squeezed the sponge dry.
    		if d.i == d.rate {
    			d.permute()
    		}
    	}
    
    	return
    }
    
    // Sum applies padding to the hash state and then squeezes out the desired
    // number of output bytes. It panics if any output has already been read.
    func (d *state) Sum(in []byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/sha3/sha3_s390x.go

    		n := len(b)
    		if len(b) > cap(s.buf)-len(s.buf) {
    			n = cap(s.buf) - len(s.buf)
    		}
    		s.copyIntoBuf(b[:n])
    		b = b[n:]
    	}
    	return length, nil
    }
    
    // Read squeezes an arbitrary number of bytes from the sponge.
    func (s *asmState) Read(out []byte) (n int, err error) {
    	// The 'compute last message digest' instruction only stores the digest
    	// at the first operand (dst) for SHAKE functions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top