- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for calculatePreauthHash (0.44 sec)
-
src/test/java/jcifs/smb/SmbTransportImplTest.java
class PreauthHashAndEncryption { @Test @DisplayName("calculatePreauthHash rejects non-SMB2 or missing negotiation") void preauthHash_rejectsWhenUnsupported() { // Not SMB2 assertThrows(SmbUnsupportedOperationException.class, () -> transport.calculatePreauthHash(new byte[] { 1 }, 0, 1, null)); // SMB2 flag set but no negotiation
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
setPrivateField(transport, "smb2", true); setPrivateField(transport, "negotiated", negotiateResponse); // Calculate hash Method calcMethod = findMethod(transport.getClass(), "calculatePreauthHash", byte[].class, int.class, int.class, byte[].class); calcMethod.setAccessible(true); byte[] input = "test data".getBytes(); byte[] oldHash = new byte[64];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
this.preauthIntegrityHash = trans.calculatePreauthHash(reqBytes, 0, reqBytes.length, this.preauthIntegrityHash); if (response.getStatus() == NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED) { byte[] respBytes = response.getRawPayload(); this.preauthIntegrityHash = trans.calculatePreauthHash(respBytes, 0, respBytes.length, this.preauthIntegrityHash);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} } private void updatePreauthHash(final byte[] input) throws CIFSException { synchronized (this.preauthHashLock) { try { this.preauthIntegrityHash = calculatePreauthHash(input, 0, input.length, this.preauthIntegrityHash); } catch (Exception e) { log.error("Failed to update pre-auth integrity hash", e);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)