Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for bytes (0.15 sec)

  1. src/test/java/jcifs/tests/PACTest.java

            }
            else {
                javaChecksum = sun.security.krb5.internal.crypto.Aes256.calculateChecksum(keybytes, usage, bytes, 0, bytes.length);
            }
    
            byte[] mac = PacMac.calculateMacHMACAES(usage, makeKey(keybytes, keybytes.length == 16 ? 17 : 18), bytes);
            checkBytes(javaChecksum, mac);
            checkBytes(Hex.decode(expect), mac);
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileOutputStream.java

    
        /**
         * Writes the specified byte to this file output stream.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public void write ( int b ) throws IOException {
            this.tmp[ 0 ] = (byte) b;
            write(this.tmp, 0, 1);
        }
    
    
        /**
         * Writes b.length bytes from the specified byte array to this
         * file output stream.
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

        }
    
    
        /**
         * Reads up to b.length bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public int read ( byte[] b ) throws IOException {
            return read(b, 0, b.length);
        }
    
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type2Message.java

        private byte[] challenge;
        private String target;
        private byte[] context;
        private byte[] targetInformation;
    
        private static final Map<String, byte[]> TARGET_INFO_CACHE = new HashMap<>();
    
    
        private static byte[] getDefaultTargetInfo ( CIFSContext tc ) {
            String domain = tc.getConfig().getDefaultDomain();
            byte[] ti = TARGET_INFO_CACHE.get(domain);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/transport/Transport.java

    
        /**
         * Read bytes from the input stream into a buffer
         * 
         * @param in
         * @param b
         * @param off
         * @param len
         * @return number of bytes read
         * @throws IOException
         */
        public static int readn ( InputStream in, byte[] b, int off, int len ) throws IOException {
            int i = 0, n = -5;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  6. 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];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                    byte[] userSessionKey = hmac.digest();
    
                    if ((getFlags() & NTLMSSP_NEGOTIATE_KEY_EXCH) != 0) {
                        masterKey = new byte[16];
                        RANDOM.nextBytes(masterKey);
    
                        byte[] exchangedKey = new byte[16];
                        RC4 rc4 = new RC4(userSessionKey);
                        rc4.update(masterKey, 0, 16, exchangedKey, 0);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/EnumTest.java

                    // + 8 byte query response overhead
                    // + 110 bytes entry
                    // -> 1022 predicted message size <= 1023 maximum buffer size
                    // 112 bytes to alignment
                    // -> aligned to 1024 > 1023 maximum buffer size
    
                    // 110 byte entry = 16 byte name = 8 char length
                    try ( SmbResource r = f.resolve(repeat('Y', 8)) ) {
                        r.createNewFile();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                andxCommand = (byte)0xFF;
                andx = null;
    
                dst[start + ANDX_COMMAND_OFFSET] = (byte)0xFF;
                dst[start + ANDX_RESERVED_OFFSET] = (byte)0x00;
    //            dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
    //            dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
                dst[start + ANDX_OFFSET_OFFSET] = (byte)0xde;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbCopyUtil.java

                        i = i == 1 ? 0 : 1;
                        off += read;
                    }
    
                    if ( log.isDebugEnabled() ) {
                        log.debug(String.format("Copied a total of %d bytes", off));
                    }
    
                    if ( dh.isSMB2() ) {
                        Smb2SetInfoRequest req = new Smb2SetInfoRequest(dh.getConfig(), dfd.getFileId());
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
Back to top