Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for sign (0.17 sec)

  1. src/main/java/jcifs/ntlmssp/NtlmFlags.java

        /**
         * Specifies that communication across the authenticated channel
         * should carry a digital signature (message integrity).
         */
        public static final int NTLMSSP_NEGOTIATE_SIGN = 0x00000010;
    
        /**
         * Specifies that communication across the authenticated channel
         * should be encrypted (message confidentiality).
         */
        public static final int NTLMSSP_NEGOTIATE_SEAL = 0x00000020;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                                clientChallenge);
    
                    setLMResponse(clientChallenge);
                    setNTResponse(ntlm2Response);
    
                    if ((getFlags() & NTLMSSP_NEGOTIATE_SIGN) == NTLMSSP_NEGOTIATE_SIGN) {
                        byte[] sessionNonce = new byte[16];
                        System.arraycopy(type2.getChallenge(), 0, sessionNonce, 0, 8);
    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)
  3. src/main/java/jcifs/smb/NtlmContext.java

                    throw new CIFSException("Failed to encrypt MIC", e);
                }
            }
    
            byte[] sig = new byte[16];
            SMBUtil.writeInt4(1, sig, 0); // version
            System.arraycopy(trunc, 0, sig, 4, 8); // checksum
            SMBUtil.writeInt4(seqNum, sig, 12); // seqNum
    
            return sig;
        }
    
    
        @Override
        public void verifyMIC ( byte[] data, byte[] mic ) throws CIFSException {
    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)
  4. 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. 
         */
        void sign(byte[] data, int offset, int length,
                    ServerMessageBlock request, ServerMessageBlock response) {
            request.signSeq = signSequence;
            if( response != null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

            if ( ( flags & ServerMessageBlock2.SMB2_FLAGS_SIGNED ) == 0 ) {
                log.error("The server did not sign a message we expected to be signed");
                return true;
            }
    
            byte[] sig = new byte[SIGNATURE_LENGTH];
            System.arraycopy(data, offset + SIGNATURE_OFFSET, sig, 0, SIGNATURE_LENGTH);
    
            int index = offset + SIGNATURE_OFFSET;
            for ( int i = 0; i < SIGNATURE_LENGTH; i++ )
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            dstIndex += writeHeaderWireFormat( dst, dstIndex );
            dstIndex += writeAndXWireFormat( dst, dstIndex );
            length = dstIndex - start;
    
            if( digest != null ) {
                digest.sign( dst, headerStart, length, this, response );
            }
    
            return length;
        }
    
        /*
         * We overload this because we want readAndXWireFormat to
         * read the parameter words and bytes. This is so when
    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)
  7. src/main/java/jcifs/smb1/smb1/NtlmContext.java

                    NtlmFlags.NTLMSSP_NEGOTIATE_NTLM2 |
                    NtlmFlags.NTLMSSP_NEGOTIATE_128;
            if (doSigning) {
                this.ntlmsspFlags |= NtlmFlags.NTLMSSP_NEGOTIATE_SIGN |
                    NtlmFlags.NTLMSSP_NEGOTIATE_ALWAYS_SIGN |
                    NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH;
            }
            this.workstation = Type1Message.getDefaultWorkstation();
            log = LogStream.getInstance();
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

            return b;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SMBSigningDigest#sign(byte[], int, int, jcifs.internal.CommonServerMessageBlock,
         *      jcifs.internal.CommonServerMessageBlock)
         */
        @Override
        public void sign ( byte[] data, int offset, int length, CommonServerMessageBlock request, CommonServerMessageBlock response ) {
            if ( log.isTraceEnabled() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 10.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/ntlmssp/NtlmFlags.java

        /**
        * Specifies that communication across the authenticated channel
        * should carry a digital signature (message integrity).
        */
        public static final int NTLMSSP_NEGOTIATE_SIGN = 0x00000010;
    
        /**
        * Specifies that communication across the authenticated channel
        * should be encrypted (message confidentiality).
        */
        public static final int NTLMSSP_NEGOTIATE_SEAL = 0x00000020;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 5.3K bytes
    - Viewed (1)
  10. src/main/java/jcifs/internal/SMBSigningDigest.java

         * @param length
         *            The length of the SMB data starting at offset.
         * @param request
         *            request message
         * @param response
         *            response message
         */
        void sign ( byte[] data, int offset, int length, CommonServerMessageBlock request, CommonServerMessageBlock response );
    
    
        /**
         * Performs MAC signature verification. This calculates the signature
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 2.2K bytes
    - Viewed (0)
Back to top