Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for tozero (0.23 sec)

  1. src/main/java/jcifs/pac/PacMac.java

            byte[] keybytes = key.getEncoded();
            Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");
            cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(keybytes, "AES"), new IvParameterSpec(ZERO_IV, 0, ZERO_IV.length));
            if ( constant.length != cipher.getBlockSize() ) {
                constant = expandNFold(constant, cipher.getBlockSize());
            }
            byte[] enc = constant;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformation.java

            int start = dstIndex;
    
            writeInt2( informationLevel, dst, dstIndex );
            dstIndex += 2;
    
            /* windows98 has what appears to be another 4 0's followed by the share
             * name as a zero terminated ascii string "\TMP" + '\0'
             *
             * As is this works, but it deviates from the spec section 4.1.6.6 but
             * maybe I should put it in. Wonder what NT does?
             */
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java

            SMBUtil.writeInt2(mapInformationLevel(this.informationLevel), dst, dstIndex);
            dstIndex += 2;
    
            /*
             * windows98 has what appears to be another 4 0's followed by the share
             * name as a zero terminated ascii string "\TMP" + '\0'
             *
             * As is this works, but it deviates from the spec section 4.1.6.6 but
             * maybe I should put it in. Wonder what NT does?
             */
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/NtlmFlags.java

         * signing and sealing authenticated communication.
         */
        public static final int NTLMSSP_NEGOTIATE_LM_KEY = 0x00000080;
    
        /**
         * ??? According to spec this is a reserved bit and must be set to zero
         */
        public static final int NTLMSSP_NEGOTIATE_NETWARE = 0x00000100;
    
        /**
         * Indicates support for NTLM authentication.
         */
        public static final int NTLMSSP_NEGOTIATE_NTLM = 0x00000200;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

                                            buffer[bufferIndex + len + 1] != (byte)0x00 ) {
                                len += 2;
                                if( len > 256 ) {
                                    throw new RuntimeException( "zero termination not found" );
                                }
                            }
                            server.oemDomainName = new String( buffer, bufferIndex,
                                    len, UNI_ENCODING );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java

            dstIndex += 4;
    
            // ReadChannelInfo
            SMBUtil.writeInt2(0, dst, dstIndex);
            SMBUtil.writeInt2(0, dst, dstIndex + 2);
            dstIndex += 4;
    
            // one byte in buffer must be zero
            dst[ dstIndex ] = 0;
            dstIndex += 1;
    
            return dstIndex - start;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java

            bufferIndex += 2;
            setupCount = buffer[bufferIndex] & 0xFF;
            bufferIndex += 2;
            if( setupCount != 0 ) {
                if( log.level > 2 )
                    log.println( "setupCount is not zero: " + setupCount );
            }
    
            return bufferIndex - start;
        }
        int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
            pad = pad1 = 0;
            int n;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/UnicodeString.java

        /**
         * 
         * @param zterm
         *            whether the string should be zero terminated
         */
        public UnicodeString ( boolean zterm ) {
            this.zterm = zterm;
        }
    
    
        /**
         * 
         * @param rus
         *            wrapped string
         * @param zterm
         *            whether the string should be zero terminated
         */
        public UnicodeString ( rpc.unicode_string rus, boolean zterm ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java

            return 0;
        }
    
    
        @Override
        protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) {
            // observed two zero bytes here with at least win98
            return 2;
        }
    
    
        @Override
        protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) throws SMBProtocolDecodingException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/Strings.java

                        log.debug(Hexdump.toHexString(buffer, bufferIndex, len));
                    }
                    throw new RuntimeCIFSException("zero termination not found");
                }
            }
            return len;
        }
    
    
        /**
         * @param src
         * @param srcIndex
         * @param len
         * @param config
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top