Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for updatePreauthHash (0.25 sec)

  1. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            preauthService.initializeSession(sessionId, salt, PreauthIntegrityService.HASH_ALGO_SHA512);
    
            // Simulate message exchange
            preauthService.updatePreauthHash(sessionId, "Message1".getBytes());
            preauthService.updatePreauthHash(sessionId, "Message2".getBytes());
    
            byte[] expectedHash = preauthService.getCurrentPreauthHash(sessionId);
    
            // Validation should pass with correct hash
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/PreauthIntegrityTest.java

                executor.submit(() -> {
                    try {
                        startLatch.await();
                        Method updateMethod = findMethod(transport.getClass(), "updatePreauthHash", byte[].class);
                        updateMethod.setAccessible(true);
                        updateMethod.invoke(transport, testData);
                    } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/PreauthIntegrityService.java

         *
         * @param sessionId the session identifier
         * @param messageData the message data to include in hash
         * @throws CIFSException if update fails
         */
        public void updatePreauthHash(String sessionId, byte[] messageData) throws CIFSException {
            PreauthIntegrityContext context = sessionContexts.get(sessionId);
            if (context == null) {
                if (enforceIntegrity) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportImpl.java

            this.negotiated = resp.getResponse();
            if (resp.getResponse().getSelectedDialect().atLeast(DialectVersion.SMB311)) {
                updatePreauthHash(resp.getRequestRaw());
                updatePreauthHash(resp.getResponseRaw());
                if (log.isDebugEnabled()) {
                    log.debug("Preauth hash after negotiate " + Hexdump.toHexString(this.preauthIntegrityHash));
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top