Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for MIC (0.22 sec)

  1. src/main/java/jcifs/smb/SpnegoContext.java

                log.debug("Out Mech list MIC " + Hexdump.toHexString(mechanismListMIC));
            }
            return mechanismListMIC;
        }
    
    
        private void verifyMechListMIC ( byte[] mechanismListMIC ) throws CIFSException {
            if ( this.disableMic ) {
                return;
            }
    
            // No MIC verification if not present and not required
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Jan 04 04:18:31 GMT 2021
    - 14.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmContext.java

            }
    
            int ver = SMBUtil.readInt4(mic, 0);
            if ( ver != 1 ) {
                throw new SmbUnsupportedOperationException("Invalid signature version");
            }
    
            MessageDigest mac = Crypto.getHMACT64(sk);
            int seq = SMBUtil.readInt4(mic, 12);
            mac.update(mic, 12, 4); // sequence
            byte[] dgst = mac.digest(data); // data
    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)
  3. src/main/java/jcifs/spnego/NegTokenInit.java

        @Override
        public String toString () {
            String mic = null;
            if ( this.getMechanismListMIC() != null ) {
                mic = Hexdump.toHexString(this.getMechanismListMIC(), 0, this.getMechanismListMIC().length);
            }
            return String.format("NegTokenInit[flags=%d,mechs=%s,mic=%s]", this.getContextFlags(), Arrays.toString(this.getMechanisms()), mic);
        }
    
    
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SSPContext.java

    
        /**
         * @param data
         * @return MIC
         * @throws CIFSException
         */
        byte[] calculateMIC ( byte[] data ) throws CIFSException;
    
    
        /**
         * @param data
         * @param mic
         * @throws CIFSException
         */
        void verifyMIC ( byte[] data, byte[] mic ) throws CIFSException;
    
    
        /**
         * @return whether MIC can be used
         */
        boolean isMICAvailable ();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/Kerb5Context.java

                throw new CIFSException("Failed to calculate MIC", e);
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#verifyMIC(byte[], byte[])
         */
        @Override
        public void verifyMIC ( byte[] data, byte[] mic ) throws CIFSException {
            try {
                this.gssContext.verifyMIC(mic, 0, mic.length, data, 0, data.length, new MessageProp(false));
            }
    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)
  6. src/main/java/jcifs/ntlmssp/Type3Message.java

         */
        public byte[] getMic () {
            return this.mic;
        }
    
    
        /**
         * @param mic
         *            NTLM mic to set (16 bytes)
         */
        public void setMic ( byte[] mic ) {
            this.mic = mic;
        }
    
    
        /**
         * @return whether a MIC should be calulated
         */
        public boolean isMICRequired () {
            return this.micRequired;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 30.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/spnego/NegTokenTarg.java

        public static final int UNSPECIFIED_RESULT = -1;
        public static final int ACCEPT_COMPLETED = 0;
        public static final int ACCEPT_INCOMPLETE = 1;
        public static final int REJECTED = 2;
        public static final int REQUEST_MIC = 3;
    
        private ASN1ObjectIdentifier mechanism;
    
        private int result = UNSPECIFIED_RESULT;
    
    
        public NegTokenTarg () {}
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Jan 04 04:18:31 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

                            // a relatively large range of samba versions has a bug causing
                            // an invalid parameter error when a SPNEGO MIC is in place and auth fails
                            throw new SmbAuthException("Login failed", e);
                        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
Back to top