- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 156 for calculating (0.2 seconds)
-
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); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
} } } @Nested @DisplayName("Usage Pattern Tests") class UsagePatternTests { @Test @DisplayName("Should support percentage calculation pattern") void shouldSupportPercentageCalculationPattern() { // Given TestAllocInfo allocInfo = new TestAllocInfo(1000L, 250L); // When - calculate percentage freeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (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) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 12.1K bytes - Click Count (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() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 20.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
} @Test @DisplayName("Test readDataWireFormat with converter offset") void testReadDataWireFormatWithConverter() throws Exception { // Set converter to test offset calculation int converterValue = 100; setConverter(response, converterValue); setNumEntries(response, 1); String shareName = "TEST"; String remark = "Test remark";Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
}); assertTrue(exception.getMessage().contains("Security buffer extends beyond available data")); } /** * Test integer overflow protection in security buffer offset calculation. */ @Test public void testSecurityBufferIntegerOverflow() { byte[] buffer = createBasicNegotiateResponseBuffer();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.8K bytes - Click Count (0) -
internal/s3select/message.go
"time" xhttp "github.com/minio/minio/internal/http" ) // A message is in the format specified in // https://docs.aws.amazon.com/AmazonS3/latest/API/images/s3select-frame-diagram-frame-overview.png // hence the calculation is made accordingly. func totalByteLength(headerLength, payloadLength int) int { return 4 + 4 + 4 + headerLength + payloadLength + 4 } func genMessage(header, payload []byte) []byte { headerLength := len(header)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 15.3K bytes - Click Count (0) -
docs/SMB3_IMPLEMENTATION_PLAN.md
└── ChannelFailover.java - Channel failure handling ``` #### 3.2 Implementation Tasks - [ ] Implement FSCTL_QUERY_NETWORK_INTERFACE_INFO - [ ] Create channel binding hash calculation - [ ] Implement channel establishment protocol - [ ] Add request distribution algorithm - [ ] Create channel synchronization mechanism - [ ] Implement channel failure detection - [ ] Add automatic channel recovery
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 10.7K bytes - Click Count (0)