Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for onresize (0.15 sec)

  1. docs/debugging/inspect/decrypt-v1.go

    	}
    
    	stream, err := sio.AES_256_GCM.Stream(key)
    	if err != nil {
    		return err
    	}
    	// Zero nonce, we only use each key once, and 32 bytes is plenty.
    	nonce := make([]byte, stream.NonceSize())
    	encr := stream.DecryptReader(r, nonce, nil)
    	_, err = io.Copy(w, encr)
    	if err == nil {
    		fmt.Println(okMsg)
    	}
    	return err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/bufio/scan.go

    		// or space is needed.
    		if s.start > 0 && (s.end == len(s.buf) || s.start > len(s.buf)/2) {
    			copy(s.buf, s.buf[s.start:s.end])
    			s.end -= s.start
    			s.start = 0
    		}
    		// Is the buffer full? If so, resize.
    		if s.end == len(s.buf) {
    			// Guarantee no overflow in the multiplication below.
    			const maxInt = int(^uint(0) >> 1)
    			if len(s.buf) >= s.maxTokenSize || len(s.buf) > maxInt/2 {
    				s.setErr(ErrTooLong)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. internal/config/crypto.go

    	key, err := k.GenerateKey(context.Background(), "", ctx)
    	if err != nil {
    		return nil, err
    	}
    	stream, err := algorithm.Stream(key.Plaintext)
    	if err != nil {
    		return nil, err
    	}
    	nonce := make([]byte, stream.NonceSize())
    	if _, err := rand.Read(nonce); err != nil {
    		return nil, err
    	}
    
    	const (
    		MaxMetadataSize = 1 << 20 // max. size of the metadata
    		Version         = 1
    	)
    	var (
    		header [5]byte
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  4. internal/kms/single-key.go

    			HTTPStatusCode: http.StatusBadRequest,
    			APICode:        "KMS.InternalException",
    			Err:            errors.New("invalid algorithm: " + algorithm),
    		}
    	}
    
    	nonce, err := sioutil.Random(aead.NonceSize())
    	if err != nil {
    		return DEK{}, err
    	}
    
    	plaintext, err := sioutil.Random(32)
    	if err != nil {
    		return DEK{}, err
    	}
    	associatedData, _ := context.MarshalText()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  5. cmd/admin-handlers.go

    		stream, err := sio.AES_256_GCM.Stream(key[:])
    		if err != nil {
    			bugLogIf(ctx, err)
    			return
    		}
    		// Zero nonce, we only use each key once, and 32 bytes is plenty.
    		nonce := make([]byte, stream.NonceSize())
    		encw := stream.EncryptWriter(w, nonce, nil)
    		defer encw.Close()
    
    		// Initialize a zip writer which will provide a zipped content
    		// of profiling data of all nodes
    		inspectZipW = zip.NewWriter(encw)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top