- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 156 for 2586 (0.01 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
when(mockLock.encode(any(byte[].class), anyInt())).thenReturn(24); Smb2LockRequest req = new Smb2LockRequest(mockConfig, testFileId, locks); byte[] buffer = new byte[256]; int bytesWritten = req.writeBytesWireFormat(buffer, 0); // Verify structure assertEquals(48, SMBUtil.readInt2(buffer, 0)); // Structure size
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
// Support both AES-128 and AES-256 for CCM cipher int keyLength = getKeyLength(); final AEADBlockCipher cipher; if (keyLength == 16) { // AES-128 CCM cipher = new CCMBlockCipher(new AESEngine()); } else if (keyLength == 32) { // AES-256 CCM - Bouncy Castle supports AES-256 with same AESEngineRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
@Test @DisplayName("Should handle empty data in wire format") void testWriteBytesWireFormatEmptyData() { request.setData(new byte[0], 0, 0); byte[] buffer = new byte[256]; int bytesWritten = request.writeBytesWireFormat(buffer, 0); assertEquals(48, bytesWritten); // Only header, no data assertEquals(49, SMBUtil.readInt2(buffer, 0)); // Structure sizeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
} @Test @DisplayName("writeBytesWireFormat should write correct structure") void testWriteBytesWireFormat() { byte[] buffer = new byte[256]; int offset = 64; // Start at offset to test proper indexing int written = request.writeBytesWireFormat(buffer, offset); // Verify bytes written assertEquals(24, written);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
public static final int CIPHER_AES128_CCM = 0x1; /** * AES 128 GCM */ public static final int CIPHER_AES128_GCM = 0x2; /** * AES 256 CCM */ public static final int CIPHER_AES256_CCM = 0x3; /** * AES 256 GCM */ public static final int CIPHER_AES256_GCM = 0x4; private int[] ciphers; /** * Constructs an encryption negotiate context. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java
while (buffer[bufferIndex + len] != (byte) 0x00 || buffer[bufferIndex + len + 1] != (byte) 0x00) { len += 2; if (len > 256) { throw new RuntimeException("zero termination not found"); } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
void testDecodeMoreProcessingParsesBlobAndFlags() throws Exception { Smb2SessionSetupResponse resp = newResponse(); byte[] buf = new byte[256]; int headerStart = 0; long expectedSessionId = 0x1122334455667788L; buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
maven-tests/mvnw
verbose " - Running Downloader.java ..." "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")" fi # If specified, validate the SHA-256 sum of the Maven distribution zip file if [ -n "${distributionSha256Sum-}" ]; then distributionSha256Result=false if [ "$MVN_CMD" = mvnd.sh ]; then echo "Checksum validation is not supported for maven-mvnd." >&2
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Sep 25 18:22:49 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
String newFilename = "newfile.txt"; trans2FindNext2.reset(newResumeKey, newFilename); // Verify by writing parameters and checking the buffer byte[] buffer = new byte[256]; int written = trans2FindNext2.writeParametersWireFormat(buffer, 0); // Check resume key at offset 6 (after sid and maxItems and informationLevel) int actualResumeKey = SMBUtil.readInt4(buffer, 6);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo); byte[] setupBuffer = new byte[256]; byte[] paramBuffer = new byte[256]; byte[] dataBuffer = new byte[256]; int setupWritten = trans2SetFileInfo.writeSetupWireFormat(setupBuffer, 0); int paramWritten = trans2SetFileInfo.writeParametersWireFormat(paramBuffer, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0)