- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,352 for 1byte (0.35 sec)
-
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
@DisplayName("Hex Conversion Tests") class HexConversionTests { @Test @DisplayName("Various byte values are converted to uppercase hex") void testHexConversion() { byte[] challenge = new byte[] { (byte) 0x00, (byte) 0x0F, (byte) 0x10, (byte) 0x7F, (byte) 0x80, (byte) 0xFF }; UniAddress dc = mock(UniAddress.class); when(dc.toString()).thenReturn("DC");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
*/ public static byte[] calculateMacHMACAES(int usage, KerberosKey baseKey, byte[] input) throws GeneralSecurityException { byte[] cst = { (byte) (usage >> 24 & 0xFF), (byte) (usage >> 16 & 0xFF), (byte) (usage >> 8 & 0xFF), (byte) (usage & 0xFF), (byte) 0x99 }; byte[] output = new byte[12]; byte[] dk = deriveKeyAES(baseKey, cst); // Checksum key try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
*/ @Test public void testInvalidBufferSizeRejection() { // Given - Buffers with various invalid sizes byte[] tooSmall = new byte[1024]; byte[] tooLarge = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE + 1]; byte[] empty = new byte[0]; // When - Try to release invalid buffers assertDoesNotThrow(() -> { BufferCache.releaseBuffer(tooSmall);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
FileRenameInformation2 info = new FileRenameInformation2(unicodeFileName, false); byte[] buffer = new byte[200]; int bytesWritten = info.encode(buffer, 0); // Verify the encoded data int nameLength = SMBUtil.readInt4(buffer, 16); byte[] nameBytes = new byte[nameLength]; System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
void testWriteBytesWireFormat() { byte[] buffer = new byte[1024]; int result = response.writeBytesWireFormat(buffer, 0); assertEquals(0, result); } @Test @DisplayName("Should return 0 regardless of buffer position") void testWriteBytesWireFormatDifferentPosition() { byte[] buffer = new byte[1024];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
// Verify each instance maintains its own state byte[] dst1 = new byte[8]; byte[] dst2 = new byte[8]; byte[] dst3 = new byte[8]; notify1.writeSetupWireFormat(dst1, 0); notify2.writeSetupWireFormat(dst2, 0); notify3.writeSetupWireFormat(dst3, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
@Test @DisplayName("Should set and get lease key") void testLeaseKeyAccessors() { byte[] newKeyBytes = new byte[] { (byte) 0xFF, (byte) 0xFE, (byte) 0xFD, (byte) 0xFC, (byte) 0xFB, (byte) 0xFA, (byte) 0xF9, (byte) 0xF8, (byte) 0xF7, (byte) 0xF6, (byte) 0xF5, (byte) 0xF4, (byte) 0xF3, (byte) 0xF2, (byte) 0xF1, (byte) 0xF0 }; Smb2LeaseKey newKey = new Smb2LeaseKey(newKeyBytes);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
"3, 3", // PRINT "0, 0", // Unknown "255, -1" // Byte overflow to signed }) void testDifferentShareTypes(int shareTypeValue, int expectedValue) throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[256]; SMBUtil.writeInt2(16, buffer, 0); buffer[2] = (byte) shareTypeValue; // When response.readBytesWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
void testWriteSetupWireFormat() { byte[] dst = new byte[100]; int result = response.writeSetupWireFormat(dst, 0); assertEquals(0, result); } @Test @DisplayName("Should return 0 for writeSetupWireFormat with offset") void testWriteSetupWireFormatWithOffset() { byte[] dst = new byte[100];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
// fid 0x1234, lastWriteTime 0 -> UTime all 0xFF return Stream.of(Arguments.of(0x1234, 0L, new byte[] { 0x34, 0x12, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }), // negative fid wraps around, lastWriteTime = 1000 -> 1 second -> int value 1 Arguments.of(-1, 1000L, new byte[] { (byte) 0xFF, (byte) 0xFF, 0x01, 0x00, 0x00, 0x00 })); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0)