Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getMD5 (0.22 sec)

  1. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

            this.digest = Crypto.getMD5();
            this.macSigningKey = macSigningKey;
        }
    
    
        /**
         * Construct a digest with a non-zero starting sequence number
         * 
         * @param macSigningKey
         * @param initialSequence
         */
        public SMB1SigningDigest ( byte[] macSigningKey, int initialSequence ) {
            this.digest = Crypto.getMD5();
            this.macSigningKey = macSigningKey;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 10.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Crypto.java

            catch ( NoSuchAlgorithmException e ) {
                throw new CIFSUnsupportedCryptoException(e);
            }
        }
    
    
        /**
         * 
         * @return MD5 digest
         */
        public static MessageDigest getMD5 () {
            try {
                return MessageDigest.getInstance("MD5");
            }
            catch ( NoSuchAlgorithmException e ) {
                throw new CIFSUnsupportedCryptoException(e);
            }
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/HMACT64.java

            }
            for ( int i = length; i < BLOCK_LENGTH; i++ ) {
                this.ipad[ i ] = IPAD;
                this.opad[ i ] = OPAD;
            }
    
            this.md5 = Crypto.getMD5();
            engineReset();
        }
    
    
        private HMACT64 ( HMACT64 hmac ) throws CloneNotSupportedException {
            super("HMACT64");
            this.ipad = hmac.ipad;
            this.opad = hmac.opad;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmContext.java

                log.debug("Server seal key is " + Hexdump.toHexString(this.sealServerKey));
            }
        }
    
    
        private static byte[] deriveKey ( byte[] masterKey, String cnst ) {
            MessageDigest md5 = Crypto.getMD5();
            md5.update(masterKey);
            md5.update(cnst.getBytes(StandardCharsets.US_ASCII));
            md5.update((byte) 0);
            return md5.digest();
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 15.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmUtil.java

        public static byte[] getNTLM2Response ( byte[] passwordHash, byte[] serverChallenge, byte[] clientChallenge ) throws GeneralSecurityException {
            byte[] sessionHash = new byte[8];
    
            MessageDigest md5 = Crypto.getMD5();;
            md5.update(serverChallenge);
            md5.update(clientChallenge, 0, 8);
            System.arraycopy(md5.digest(), 0, sessionHash, 0, 8);
    
            byte[] key = new byte[21];
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 9.7K bytes
    - Viewed (0)
  6. cmd/server_test.go

    	// fetch the content from response body.
    	getContent, err := io.ReadAll(response.Body)
    	c.Assert(err, nil)
    
    	// Get etag of the response content.
    	getMD5 := getMD5Hash(getContent)
    
    	// Compare putContent and getContent.
    	c.Assert(putMD5, getMD5)
    }
    
    // TestGetPartialObjectMisAligned - tests get object partially miss-aligned.
    // create a large buffer of miss-aligned data and upload it.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
Back to top