Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,385 for BYTE (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            void testReadBytesWireFormatNegativeAsUnsigned() {
                // Given
                byte[] buffer = new byte[10];
                // Write -1 which will be read as 65535 unsigned
                buffer[0] = (byte) 0xFF;
                buffer[1] = (byte) 0xFF;
    
                // When & Then
                SMBProtocolDecodingException exception =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0x62a8ab43, fulls);
      }
    
      public void testFull100() {
        // Test 100 byte array of 0xFF.
        byte[] fulls = new byte[100];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0xbc753add, fulls);
      }
    
      public void testAscending() {
        // Test 32 byte arrays of ascending.
        byte[] ascending = new byte[32];
        for (int i = 0; i < 32; i++) {
          ascending[i] = (byte) i;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/av/AvSingleHost.java

        private static byte[] encode(final byte[] customData, final byte[] machineId) {
            final int size = 8 + 8 + 32;
            final byte[] enc = new byte[size];
            SMBUtil.writeInt4(size, enc, 0);
            SMBUtil.writeInt4(0, enc, 4);
            System.arraycopy(customData, 0, enc, 8, 8);
            System.arraycopy(machineId, 0, enc, 16, 32);
            return enc;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

        @Test
        void testWriteSetupWireFormat() {
            byte[] dst = new byte[10];
            int result = response.writeSetupWireFormat(dst, 0);
            assertEquals(0, result, "writeSetupWireFormat should always return 0.");
        }
    
        /**
         * Tests the writeParametersWireFormat method.
         */
        @Test
        void testWriteParametersWireFormat() {
            byte[] dst = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

        private static final SecureRandom RANDOM = new SecureRandom();
    
        private byte[] lmResponse;
    
        private byte[] ntResponse;
    
        private String domain;
    
        private String user;
    
        private String workstation;
    
        private byte[] masterKey = null;
        private byte[] sessionKey = null;
    
        static {
            DEFAULT_FLAGS = NTLMSSP_NEGOTIATE_NTLM
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

        /**
         * Size of the transform header in bytes
         */
        public static final int TRANSFORM_HEADER_SIZE = 52;
    
        private final byte[] signature = new byte[16];
        private final byte[] nonce = new byte[16];
        private int originalMessageSize;
        private int flags;
        private long sessionId;
    
        /**
         * Create a new SMB2 Transform Header
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacTest.java

            byte[] emptyData = new byte[8];
    
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(emptyData, keys));
            // Any PACDecodingException is acceptable for this test
            assertNotNull(e.getMessage());
        }
    
        @Test
        void testTooSmallPac() {
            // Test that PAC smaller than 8 bytes is rejected
            byte[] smallData = new byte[4];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

         */
        private byte[] generateTestData(int size) {
            byte[] data = new byte[size];
    
            // Create data with repeating patterns
            for (int i = 0; i < size; i++) {
                if (i % 100 < 50) {
                    data[i] = (byte) 'A';
                } else if (i % 100 < 75) {
                    data[i] = (byte) 'B';
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

         * @param buffer
         *            the transaction buffer to use
         */
        public void setBuffer(final byte[] buffer) {
            this.txn_buf = buffer;
        }
    
        /**
         * Releases and returns the transaction buffer
         * @return the txn_buf
         */
        public byte[] releaseBuffer() {
            final byte[] buf = this.txn_buf;
            this.txn_buf = null;
            return buf;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Test initial encryption
            byte[] plaintext1 = "Before rotation".getBytes();
            byte[] encrypted1 = context.encryptMessage(plaintext1, 1L);
            byte[] decrypted1 = context.decryptMessage(encrypted1);
            assertArrayEquals(plaintext1, decrypted1);
    
            // When - Rotate keys
            byte[] newEncKey = new byte[16];
            byte[] newDecKey = new byte[16];
            new SecureRandom().nextBytes(newEncKey);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
Back to top