Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for verify (0.15 sec)

  1. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

                // TODO: SMB2 - do we need to check the MIDs?
                // We only read what we were waiting for, so first guess would be no.
                boolean verify = dgst.verify(buffer, i, size, 0, this);
                this.verifyFailed = verify;
                return !verify;
            }
            return true;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 7.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbConstants.java

        static final int FLAGS_TARGET_MUST_BE_DIRECTORY = 0x0002;
        static final int FLAGS_COPY_TARGET_MODE_ASCII = 0x0004;
        static final int FLAGS_COPY_SOURCE_MODE_ASCII = 0x0008;
        static final int FLAGS_VERIFY_ALL_WRITES = 0x0010;
        static final int FLAGS_TREE_COPY = 0x0020;
    
        // open function
        static final int OPEN_FUNCTION_FAIL_IF_EXISTS = 0x0000;
        static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTS = 0x0020;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SigningDigest.java

         *
         * @param data The data.
         * @param offset The starting offset at which the SMB header begins.
         * @param length The length of the SMB data starting at offset. 
         */
        boolean verify(byte[] data, int offset, ServerMessageBlock response) {
            update(macSigningKey, 0, macSigningKey.length);
            int index = offset;
            update(data, index, ServerMessageBlock.SIGNATURE_OFFSET); 
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmContext.java

                throw new CIFSException(String.format("Invalid MIC sequence, expect %d have %d", expectSeq, seq));
            }
    
            byte[] verify = new byte[8];
            System.arraycopy(mic, 4, verify, 0, 8);
            if ( !MessageDigest.isEqual(trunc, verify) ) {
                if ( log.isDebugEnabled() ) {
                    log.debug(String.format("Seq = %d ver = %d encrypted = %s", seq, ver, encrypted));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 15.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        static final int FLAGS_TARGET_MUST_BE_DIRECTORY    = 0x0002; 
        static final int FLAGS_COPY_TARGET_MODE_ASCII      = 0x0004; 
        static final int FLAGS_COPY_SOURCE_MODE_ASCII      = 0x0008;
        static final int FLAGS_VERIFY_ALL_WRITES           = 0x0010; 
        static final int FLAGS_TREE_COPY                   = 0x0020; 
    
        // open function
        static final int OPEN_FUNCTION_FAIL_IF_EXISTS      = 0x0000;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 8.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/Kerb5Context.java

            try {
                this.gssContext.verifyMIC(mic, 0, mic.length, data, 0, data.length, new MessageProp(false));
            }
            catch ( GSSException e ) {
                throw new CIFSException("Failed to verify MIC", e);
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isMICAvailable()
         */
        @Override
        public boolean isMICAvailable () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Aug 02 08:22:42 GMT 2018
    - 13.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/RandomAccessFileTest.java

                if ( read < 0 ) {
                    fail("Unexpected EOF");
                }
    
                byte verify[] = new byte[read];
                ReadWriteTest.randBytes(r, verify);
                byte actual[] = Arrays.copyOfRange(buffer, 0, read);
    
                assertArrayEquals("Data matches at offset " + p, actual, verify);
    
                p += read;
            }
            assertEquals("Expecting EOF", -1, is.read(buffer, 0, 1));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/ReadWriteTest.java

                if ( read < 0 ) {
                    fail("Unexpected EOF at " + p);
                }
    
                byte verify[] = new byte[read];
                randBytes(r, verify);
                byte actual[] = Arrays.copyOfRange(buffer, 0, read);
    
                assertArrayEquals("Data matches at offset " + p, actual, verify);
    
                p += read;
            }
            if ( expectEof ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

             * SMB_COM_SESSION_SETUP_ANDX Request (section 2.2.4.53.1).
             */
            if ( this.digest != null && getErrorCode() == 0 ) {
                boolean verify = this.digest.verify(buffer, i, size, 0, this);
                this.verifyFailed = verify;
                return !verify;
            }
            return true;
        }
    
    
        protected int writeString ( String str, byte[] dst, int dstIndex ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 32.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/http/ne.css

            color: #000000;
        }
        div {
            float: left;
            width: 100px;
            height: 18px;
            padding: 2px;
            font-family: Verdana, sans-serif;
            font-size: 10pt;
        }
        body {
            font-family: Verdana, sans-serif;
            font-size: 10pt;
            background-color: #ffffff;
            margin-top: 0;
            margin-left: 5;
        }
        small {
            font-size: 8pt;
        }
    CSS
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 1.5K bytes
    - Viewed (0)
Back to top