Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 1,386 for Byte (0.01 sec)

  1. src/test/java/jcifs/spnego/NegTokenTargTest.java

            ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2");
            byte[] tokenArray = new byte[] { 1, 2, 3 };
            byte[] mic = new byte[] { 9, 9, 9 };
            NegTokenTarg original = new NegTokenTarg(NegTokenTarg.ACCEPT_COMPLETED, mech, tokenArray, mic);
    
            // Act – serialise and parse back
            byte[] bytes = original.toByteArray();
            NegTokenTarg roundTrip = new NegTokenTarg(bytes);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SecureCredentialStorageTest.java

        public void testDifferentEncryptionsProduceDifferentCiphertexts() throws Exception {
            char[] plaintext = "SamePassword".toCharArray();
    
            // Encrypt twice
            byte[] encrypted1 = storage.encryptCredentials(plaintext.clone());
            byte[] encrypted2 = storage.encryptCredentials(plaintext.clone());
    
            // Should produce different ciphertexts due to random IV
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

        void testDecodeAvChannelBindings() throws CIFSException {
            byte[] data = new byte[] { (byte) 0xAA, (byte) 0xBB };
            byte[] avPairData = createAvPairData(AvPair.MsvAvChannelBindings, data);
            byte[] eolData = createEolData();
    
            byte[] fullData = new byte[avPairData.length + eolData.length];
            System.arraycopy(avPairData, 0, fullData, 0, avPairData.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java

        private static final byte[] SIGNCONTEXT_300 = toCBytes("SmbSign");
        private static final byte[] SIGNLABEL_300 = toCBytes("SMB2AESCMAC");
        private static final byte[] SIGNLABEL_311 = toCBytes("SMBSigningKey");
    
        private static final byte[] APPCONTEXT_300 = toCBytes("SmbRpc");
        private static final byte[] APPLABEL_300 = toCBytes("SMB2APP");
        private static final byte[] APPLABEL_311 = toCBytes("SMBAppKey");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipe.java

            this.maxParameterCount = 6;
            this.maxDataCount = 1;
            this.maxSetupCount = (byte) 0x00;
            this.setupCount = 2;
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = this.getSubCommand();
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            // this says "Transaction priority" in netmon
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            assertTrue(result > 0);
            assertEquals((byte) 0x04, dst[0]); // First buffer format byte
    
            // Find the second buffer format byte by searching for it
            // In Unicode mode, the old filename is written as Unicode, then 0x04, then an alignment byte
            int secondBufferFormatIndex = -1;
            for (int i = 1; i < result - 1; i++) {
                if (dst[i] == (byte) 0x04) {
                    secondBufferFormatIndex = i;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

            // Protected constructor for abstract class
        }
    
        /**
         * The NTLMSSP "preamble".
         */
        protected static final byte[] NTLMSSP_SIGNATURE =
                { (byte) 'N', (byte) 'T', (byte) 'L', (byte) 'M', (byte) 'S', (byte) 'S', (byte) 'P', (byte) 0 };
    
        private static final String OEM_ENCODING = Config.DEFAULT_OEM_ENCODING;
        /**
         * Unicode encoding used for NTLM messages.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            assertEquals((byte) (listCount & 0xFF), dst[2]);
            assertEquals((byte) ((listCount >> 8) & 0xFF), dst[3]);
    
            // informationLevel (2 bytes, LE) -> 0x0104
            assertEquals((byte) 0x04, dst[4]);
            assertEquals((byte) 0x01, dst[5]);
    
            // resumeKey (4 bytes, LE)
            assertEquals((byte) 0xEF, dst[6]);
            assertEquals((byte) 0xCD, dst[7]);
            assertEquals((byte) 0xAB, dst[8]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            long timeout = 3000L;
            FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName, timeout);
    
            // Encode multiple times
            byte[] buffer1 = new byte[100];
            byte[] buffer2 = new byte[100];
            byte[] buffer3 = new byte[100];
    
            int encoded1 = request.encode(buffer1, 0);
            int encoded2 = request.encode(buffer2, 0);
            int encoded3 = request.encode(buffer3, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

            buffer[21] = 0x00;
    
            return buffer;
        }
    
        private byte[] createMockFileInternalInfoBuffer() {
            // Create a buffer that represents FileInternalInfo data
            // FileInternalInfo contains an 8-byte index number
            byte[] buffer = new byte[8];
    
            for (int i = 0; i < 8; i++) {
                buffer[i] = (byte) (0xFF - i);
            }
    
            return buffer;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top