Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 223 for 256 (0.01 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

                return; // Skip sizes larger than buffer
            }
    
            byte[] sourceData = new byte[dataSize];
            for (int i = 0; i < dataSize; i++) {
                sourceData[i] = (byte) (i % 256);
            }
    
            byte[] buffer = new byte[dataSize + 50];
            System.arraycopy(sourceData, 0, buffer, 10, dataSize);
    
            int result = response.readDataWireFormat(buffer, 10, dataSize);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            }
        }
    
        /**
         * Counts the number of unique bytes in the data (for entropy estimation).
         */
        private int countUniqueBytes(byte[] data) {
            boolean[] seen = new boolean[256];
            int count = 0;
    
            for (byte b : data) {
                int index = b & 0xFF;
                if (!seen[index]) {
                    seen[index] = true;
                    count++;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SecureKeyManager.java

            if (context != null) {
                System.arraycopy(context, 0, input, pos, context.length);
            }
    
            // Use SHA-256 for derivation (placeholder)
            try {
                java.security.MessageDigest md = java.security.MessageDigest.getInstance("SHA-256");
                byte[] hash = md.digest(input);
                System.arraycopy(hash, 0, derived, 0, Math.min(length, hash.length));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

                this.preauthSalt = salt;
    
                if (config.isEncryptionEnabled()) {
                    // Build cipher list based on AES-256 support
                    List<Integer> ciphers = new ArrayList<>();
    
                    // Prefer GCM over CCM for better performance
                    if (config.isAES256Enabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

        void testMaxOffsetBoundary() {
            // Arrange
            byte[] largeData = new byte[1000];
            for (int i = 0; i < largeData.length; i++) {
                largeData[i] = (byte) (i % 256);
            }
            int offset = 990;
            int length = 10;
    
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, largeData, offset, length);
            byte[] dst = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. docs/kms/IAM.md

    setting the env. variable `MINIO_KMS_SECRET_KEY`. It expects the following
    format:
    
    ```sh
    MINIO_KMS_SECRET_KEY=<key-name>:<base64-value>
    ```
    
    First generate a 256 bit random key via:
    
    ```sh
    $ cat /dev/urandom | head -c 32 | base64 -
    OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw=
    ```
    
    Now, you can set `MINIO_KMS_SECRET_KEY` like this:
    
    ```sh
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        }
    
        @Override
        public BeanDesc getBeanDesc() {
            return beanDesc;
        }
    
        @Override
        public final String toString() {
            final StringBuilder buf = new StringBuilder(256);
            buf.append("propertyName=")
                    .append(propertyName)
                    .append(",propertyType=")
                    .append(propertyType.getName())
                    .append(",readMethod=")
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

                    // start with some reasonably safe defaults, the server will till us if it does not like it
                    // can we resume this if we loose the file descriptor?
    
                    int maxChunks = 256;
                    int maxChunkSize = 1024 * 1024;
                    int byteLimit = 16 * 1024 * 1024;
                    boolean retry = false;
                    do {
                        long ooff = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            @BeforeEach
            void setUp() {
                testName = "CREATE_CONTEXT_TEST".getBytes(StandardCharsets.UTF_8);
                testResponse = new TestCreateContextResponse(testName);
                testBuffer = new byte[256];
                Arrays.fill(testBuffer, (byte) 0x42);
            }
    
            @Test
            @DisplayName("Should correctly store and return name")
            void testNameStorage() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  10. docs/smb3-features/03-multi-channel-design.md

        private byte[] calculateBindingHash(byte[] bindingInfo) throws IOException {
            try {
                MessageDigest digest = MessageDigest.getInstance("SHA-256");
                return digest.digest(bindingInfo);
            } catch (NoSuchAlgorithmException e) {
                throw new IOException("SHA-256 not available", e);
            }
        }
        
        public ChannelInfo selectChannel(SMBMessage message) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top