Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getUnicodeHash (0.08 sec)

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

         * {@inheritDoc}
         *
         * @see jcifs.smb.NtlmPasswordAuthenticator#getUnicodeHash(jcifs.CIFSContext, byte[])
         */
        @Override
        public byte[] getUnicodeHash ( CIFSContext tc, byte[] chlng ) throws GeneralSecurityException {
            if ( this.hashesExternal ) {
                return this.unicodeHash;
            }
            return super.getUnicodeHash(tc, chlng);
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SigningDigest.java

                case 1:
                case 2:
                    macSigningKey = new byte[40];
                    auth.getUserSessionKey(transport.server.encryptionKey, macSigningKey, 0);
                    System.arraycopy(auth.getUnicodeHash(transport.server.encryptionKey),
                                0, macSigningKey, 16, 24);
                    break;
                case 3:
                case 4:
                case 5:
                    macSigningKey = new byte[16];
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                case 2:
                    this.macSigningKey = new byte[40];
                    auth.getUserSessionKey(transport.getContext(), serverEncryptionKey, this.macSigningKey, 0);
                    System.arraycopy(auth.getUnicodeHash(transport.getContext(), serverEncryptionKey), 0, this.macSigningKey, 16, 24);
                    break;
                case 3:
                case 4:
                case 5:
                    this.macSigningKey = new byte[16];
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 10.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                    } else if (session.transport.server.encryptedPasswords) {
                        lmHash = auth.getAnsiHash( session.transport.server.encryptionKey );
                        ntHash = auth.getUnicodeHash( session.transport.server.encryptionKey );
                        // prohibit HTTP auth attempts for the null session
                        if (lmHash.length == 0 && ntHash.length == 0) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         * 
         * @param tc
         * @param chlng
         * @return the hash for the given challenge
         * @throws GeneralSecurityException
         */
        public byte[] getUnicodeHash ( CIFSContext tc, byte[] chlng ) throws GeneralSecurityException {
            switch ( tc.getConfig().getLanManCompatibility() ) {
            case 0:
            case 1:
            case 2:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                        if ( server.encryptedPasswords ) {
                            this.lmHash = a.getAnsiHash(tc, server.encryptionKey);
                            this.ntHash = a.getUnicodeHash(tc, server.encryptionKey);
                            // prohibit HTTP auth attempts for the null session
                            if ( this.lmHash.length == 0 && this.ntHash.length == 0 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 17 10:20:23 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            default:
                return getPreNTLMResponse( password, challenge );
            }
        }
    /**
     * Computes the 24 byte Unicode password hash given the 8 byte server challenge.
     */
        public byte[] getUnicodeHash( byte[] challenge ) {
            if( hashesExternal ) {
                return unicodeHash;
            }
            switch (LM_COMPATIBILITY) {
            case 0:
            case 1:
            case 2:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
Back to top