Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 1,517 for byte1 (0.05 sec)

  1. cmd/admin-handlers-config-kv.go

    	}
    
    	writeSuccessResponseHeadersOnly(w)
    }
    
    func setConfigKV(ctx context.Context, objectAPI ObjectLayer, kvBytes []byte) (result setConfigResult, err error) {
    	result.Cfg, err = readServerConfig(ctx, objectAPI, nil)
    	if err != nil {
    		return
    	}
    
    	result.Dynamic, err = result.Cfg.ReadConfig(bytes.NewReader(kvBytes))
    	if err != nil {
    		return
    	}
    
    	result.SubSys, _, _, err = config.GetSubSys(string(kvBytes))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    		if publicKey == nil {
    			w.Write([]byte{1})
    			w.Write(key[:])
    		}
    
    		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()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/request-files.md

    * `write(data)`: Escreve `data` (`str` ou `bytes`) no arquivo.
    * `read(size)`: Lê `size` (`int`) bytes/caracteres do arquivo.
    * `seek(offset)`: Vai para o byte na posição `offset` (`int`) no arquivo.
        * Por exemplo, `await myfile.seek(0)` irá para o início do arquivo.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 19:52:32 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThrows(
            IllegalArgumentException.class, () -> Ints.fromByteArray(new byte[Ints.BYTES - 1]));
      }
    
      public void testFromBytes() {
        assertThat(Ints.fromBytes((byte) 0x12, (byte) 0x13, (byte) 0x14, (byte) 0x15))
            .isEqualTo(0x12131415);
        assertThat(Ints.fromBytes((byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC))
            .isEqualTo(0xFFEEDDCC);
      }
    
      public void testByteArrayRoundTrips() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        // KGS!@#$%
        private static final byte[] S8 = {
            (byte)0x4b, (byte)0x47, (byte)0x53, (byte)0x21,
            (byte)0x40, (byte)0x23, (byte)0x24, (byte)0x25
        };
        /* Accepts key multiple of 7
         * Returns enc multiple of 8
         * Multiple is the same like: 21 byte key gives 24 byte result
         */
        private static void E( byte[] key, byte[] data, byte[] e ) {
            byte[] key7 = new byte[7];
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
  6. internal/kms/kes.go

    func (c *kesConn) ImportKey(ctx context.Context, keyID string, bytes []byte) error {
    	return c.client.ImportKey(ctx, keyID, &kes.ImportKeyRequest{
    		Key: bytes,
    	})
    }
    
    // EncryptKey Encrypts and authenticates a (small) plaintext with the cryptographic key
    // The plaintext must not exceed 1 MB
    func (c *kesConn) EncryptKey(keyID string, plaintext []byte, ctx Context) ([]byte, error) {
    	ctxBytes, err := ctx.MarshalText()
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. cmd/tier.go

    		return err
    	}
    	config.Tiers[tierName] = cfg
    	config.drivercache[tierName] = d
    	return nil
    }
    
    // Bytes returns msgpack encoded config with format and version headers.
    func (config *TierConfigMgr) Bytes() ([]byte, error) {
    	config.RLock()
    	defer config.RUnlock()
    	data := make([]byte, 4, config.Msgsize()+4)
    
    	// Initialize the header.
    	binary.LittleEndian.PutUint16(data[0:2], tierConfigFormat)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. internal/kms/dek_test.go

    		}
    		if key.Plaintext != nil {
    			t.Fatalf("Test %d: unmarshaled DEK contains non-nil plaintext", i)
    		}
    		if !bytes.Equal(key.Ciphertext, test.Key.Ciphertext) {
    			t.Fatalf("Test %d: ciphertext mismatch: got %x - want %x", i, key.Ciphertext, test.Key.Ciphertext)
    		}
    	}
    }
    
    func mustDecodeB64(s string) []byte {
    	b, err := base64.StdEncoding.DecodeString(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/SourceSinkFactory.java

       * source created with some given bytes, this method would return a subsequence of the given
       * (byte[]) data.
       */
      T getExpected(T data);
    
      /** Cleans up anything created when creating the source or sink. */
      public abstract void tearDown() throws IOException;
    
      /** Factory for byte or char sources. */
      public interface SourceFactory<S, T> extends SourceSinkFactory<S, T> {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3K bytes
    - Viewed (0)
  10. internal/grid/connection.go

    	pingFrame := message{
    		Op:         OpPing,
    		DeadlineMS: uint32(connPingInterval.Milliseconds()),
    		Payload:    make([]byte, pingMsg{}.Msgsize()),
    	}
    
    	defer ping.Stop()
    	queue := make([][]byte, 0, maxMergeMessages)
    	merged := make([]byte, 0, writeBufferSize)
    	var queueSize int
    	var buf bytes.Buffer
    	var wsw wsWriter
    	var lastSetDeadline time.Time
    
    	// Helper to write everything in buf.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top