- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,386 for Byte (0.02 sec)
-
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
// KGS!@#$% private static final byte[] S8 = { (byte) 0x4b, (byte) 0x47, (byte) 0x53, (byte) 0x21, (byte) 0x40, (byte) 0x23, (byte) 0x24, (byte) 0x25 }; /* Accepts key multiple of 7 * Returns enc multiple of 8 * Multiple is the same like: 21 byte key gives 24 byte result */ private static void E(final byte[] key, final byte[] data, final byte[] e) { final byte[] key7 = new byte[7];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
void testDifferentSessionKeys() throws GeneralSecurityException { byte[] sessionKey1 = new byte[16]; Arrays.fill(sessionKey1, (byte) 0x11); byte[] sessionKey2 = new byte[16]; Arrays.fill(sessionKey2, (byte) 0x22); Smb2SigningDigest digest1 = new Smb2SigningDigest(sessionKey1, Smb2Constants.SMB2_DIALECT_0202, null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
} @Test @DisplayName("Should handle various file ID sizes") void testVariousFileIdSizes() { byte[] shortFileId = new byte[8]; byte[] standardFileId = new byte[16]; byte[] longFileId = new byte[32]; assertDoesNotThrow(() -> request.setFileId(shortFileId)); assertDoesNotThrow(() -> request.setFileId(standardFileId));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java
@Test void testWriteSetupWireFormat() { byte[] dst = new byte[10]; int result = response.writeSetupWireFormat(dst, 0); assertEquals(0, result, "writeSetupWireFormat should always return 0."); } /** * Tests the writeParametersWireFormat method. */ @Test void testWriteParametersWireFormat() { byte[] dst = new byte[10];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
byte b4 = readAndCheckByte(); byte b5 = readAndCheckByte(); byte b6 = readAndCheckByte(); byte b7 = readAndCheckByte(); byte b8 = readAndCheckByte(); return Longs.fromBytes(b8, b7, b6, b5, b4, b3, b2, b1); } /** * Reads a {@code float} as specified by {@link DataInputStream#readFloat()}, except using * little-endian byte order. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/av/AvSingleHost.java
private static byte[] encode(final byte[] customData, final byte[] machineId) { final int size = 8 + 8 + 32; final byte[] enc = new byte[size]; SMBUtil.writeInt4(size, enc, 0); SMBUtil.writeInt4(0, enc, 4); System.arraycopy(customData, 0, enc, 8, 8); System.arraycopy(machineId, 0, enc, 16, 32); return enc; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java
/** * Size of the transform header in bytes */ public static final int TRANSFORM_HEADER_SIZE = 52; private final byte[] signature = new byte[16]; private final byte[] nonce = new byte[16]; private int originalMessageSize; private int flags; private long sessionId; /** * Create a new SMB2 Transform Header */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.1K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
// Verify content assertArrayEquals(new byte[] { (byte) 0xFF, 0x01, 0x02, 0x03, 0x00 }, dest, "Encoded bytes should be placed at the correct offset"); } @Test void testEncodeZeroLength() { // Test encoding with zero length byte[] data = { 0x01, 0x02, 0x03 }; ByteEncodable encodable = new ByteEncodable(data, 0, 0); byte[] dest = new byte[3];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
byte[] emptyData = new byte[8]; PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(emptyData, keys)); // Any PACDecodingException is acceptable for this test assertNotNull(e.getMessage()); } @Test void testTooSmallPac() { // Test that PAC smaller than 8 bytes is rejected byte[] smallData = new byte[4];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
* @param buffer * the transaction buffer to use */ public void setBuffer(final byte[] buffer) { this.txn_buf = buffer; } /** * Releases and returns the transaction buffer * @return the txn_buf */ public byte[] releaseBuffer() { final byte[] buf = this.txn_buf; this.txn_buf = null; return buf; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.3K bytes - Viewed (0)