- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 66 for calculation (3.06 sec)
-
src/main/java/jcifs/smb1/ntlmssp/NtlmFlags.java
/** * Sent by the server in the Type 2 message to indicate that it is * including a Target Information block in the message. The Target * Information block is used in the calculation of the NTLMv2 response. */ int NTLMSSP_NEGOTIATE_TARGET_INFO = 0x00800000; /** * Indicates that 128-bit encryption is supported. */ int NTLMSSP_NEGOTIATE_128 = 0x20000000;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java
0, // shareAccess 0, // extFileAttributes createOptions, mockAndX); } @Nested @DisplayName("Constructor createDisposition calculation") class CreateDispositionTests { static java.util.stream.Stream<Arguments> flagsProvider() { return java.util.stream.Stream.of(Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
for (int i = 0; i < cipherCount; i++) { assertEquals(i + 1, context.getCiphers()[i]); } } } @Nested @DisplayName("Size Calculation Tests") class SizeCalculationTests { @Test @DisplayName("Should calculate size for null ciphers") void testSizeWithNullCiphers() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
response.readDataWireFormat(buffer, 0, 0); }); } @Test @DisplayName("Test readDataWireFormat preserves buffer index calculation") void testReadDataWireFormatBufferIndexCalculation() throws Exception { byte[] buffer = createValidSecurityDescriptorBuffer(); int startIndex = 10; // Prepare buffer with offset
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
// Create valid signature using HmacSHA256 Mac mac = Mac.getInstance("HmacSHA256"); mac.init(new SecretKeySpec(sessionKey, "HmacSHA256")); // Zero signature field for calculation for (int i = 0; i < SIGNATURE_LENGTH; i++) { data[SIGNATURE_OFFSET + i] = 0; } mac.update(data, 0, data.length); byte[] signature = mac.doFinal();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
* @param messageData the message data to hash * @param hashAlgorithm the hash algorithm to use * @return the new hash * @throws CIFSException if hash calculation fails */ private byte[] calculateHash(byte[] previousHash, byte[] messageData, int hashAlgorithm) throws CIFSException { try { MessageDigest digest; switch (hashAlgorithm) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
private static final long BASE_POLL_INTERVAL = 1000; private static final long BASE_ERROR_DELAY = 1000; private static final int MAX_FAILURE_LIMIT = 5; // Limit failures for backoff calculation private final InetAddress witnessServer; private final int port; private final CIFSContext context; private final ConcurrentHashMap<String, WitnessRegistration> registrations;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
assertEquals(2500L * 16 * 1024, fileFsSizeInfo.getFree()); } } @Nested @DisplayName("Capacity and Free Space Calculation Tests") class CapacityCalculationTests { @Test @DisplayName("Should calculate capacity correctly") void shouldCalculateCapacityCorrectly() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// When int size = request.size(); // Then // Verify size includes SMB2_HEADER_LENGTH assertTrue(size >= Smb2Constants.SMB2_HEADER_LENGTH); // The actual calculation: (SMB2_HEADER_LENGTH + 4 + 7) & ~7 int expectedBase = Smb2Constants.SMB2_HEADER_LENGTH + 4; int expectedAligned = (expectedBase + 7) & ~7; assertEquals(expectedAligned, size); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
assertEquals(2500L * 16 * 1024, fileFsFullSizeInfo.getFree()); } } @Nested @DisplayName("Capacity and Free Space Calculation Tests") class CapacityCalculationTests { @Test @DisplayName("Should calculate capacity correctly") void shouldCalculateCapacityCorrectly() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0)