- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,703 for byte (0.02 sec)
-
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
offset += 4; sourceBuffer[offset++] = (byte) 1; // deletePending = true sourceBuffer[offset++] = (byte) 0; // directory = false // Decode to set state fileStandardInfo.decode(sourceBuffer, 0, sourceBuffer.length); // Now test encode byte[] destinationBuffer = new byte[30]; // Extra space int dstIndex = 3; // Start at offset 3Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
(byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF, 0x00 }; Smb2LeaseKey key = new Smb2LeaseKey(testBytes); byte[] buffer = new byte[20]; key.encode(buffer, 2); for (int i = 0; i < 16; i++) { assertEquals(testBytes[i], buffer[i + 2]); } } @Test @DisplayName("Should implement equals correctly") void testEquals() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
*/ private static byte[] decryptRC4(byte[] data, Key key) throws GeneralSecurityException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { Cipher cipher; byte[] decrypt; byte[] code = new byte[4]; Encdec.enc_uint32le(2, code, 0); byte[] codeHmac = getHmac(code, key.getEncoded());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
assertEquals(0, emptyRead); assertEquals(0, fullRead); } /** * Create a test byte array with specified size and pattern */ private byte[] createTestData(int size) { byte[] data = new byte[size]; for (int i = 0; i < size; i++) { data[i] = (byte) (i % 256); } return data; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
// Session ID (8 bytes) - little-endian buffer[index++] = (byte) (testSessionId & 0xFF); buffer[index++] = (byte) ((testSessionId >> 8) & 0xFF); buffer[index++] = (byte) ((testSessionId >> 16) & 0xFF); buffer[index++] = (byte) ((testSessionId >> 24) & 0xFF); buffer[index++] = (byte) ((testSessionId >> 32) & 0xFF);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java
* @param remaining the number of bytes remaining to be written * @param b the data buffer containing bytes to write * @param off the offset in the buffer where data starts * @param len the number of bytes to write */ public final void setParam(final int fid, final long offset, final int remaining, final byte[] b, final int off, final int len) { this.fid = fid;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
serverData.capabilities = 0; // No extended security serverData.encryptionKeyLength = 8; response.byteCount = 15; // 8 bytes key + 6 bytes "DOMAIN" + 1 null terminator // Prepare byte array byte[] encryptionKey = "12345678".getBytes(); byte[] domainNameBytes = "DOMAIN".getBytes(ServerMessageBlock.OEM_ENCODING); ByteBuffer buffer = ByteBuffer.allocate(response.byteCount);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java
*/ @Test void testConstructorWithEmptyToken() { byte[] emptyToken = new byte[0]; assertThrows(PACDecodingException.class, () -> new KerberosToken(emptyToken)); } /** * Test constructor with a malformed token (not ASN.1). */ @Test void testConstructorWithMalformedToken() { byte[] malformedToken = "This is not a valid token".getBytes();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K 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/main/java/jcifs/smb1/util/Encdec.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.5K bytes - Viewed (0)