- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 248 for zeros (0.3 sec)
-
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
assertEquals((byte) 0x53, aad[2]); assertEquals((byte) 0xFD, aad[3]); // Verify signature is zeroed out (16 bytes of zeros) for (int i = 4; i < 20; i++) { assertEquals(0, aad[i], "Signature bytes should be zero in AAD"); } // Verify nonce matches at position 20 for (int i = 0; i < 16; i++) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
assertArrayEquals(testFileId, copiedFileId); } @Test @DisplayName("Test with various file ID patterns") void testWithVariousFileIdPatterns() { // Test with all zeros byte[] zeroFileId = new byte[16]; Smb2CloseRequest zeroRequest = new Smb2CloseRequest(mockConfig, zeroFileId, testFileName); testFileIdInRequest(zeroRequest, zeroFileId);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java
srvsvc.ShareInfo502 info502 = new srvsvc.ShareInfo502(); byte[] securityDescriptorBytes = new byte[20]; securityDescriptorBytes[0] = 1; // revision // Rest are zeros - no DACL info502.security_descriptor = securityDescriptorBytes; info502.sd_size = securityDescriptorBytes.length; // Replace info field
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20)); // Pad with zeros if context handle is shorter than 20 bytes for (int i = contextHandle.length; i < 20; i++) { buf.enc_ndr_small(0); } } else { // Write 20 zero bytes for null context handle for (int i = 0; i < 20; i++) { buf.enc_ndr_small(0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
} @Test @DisplayName("Should handle edge case with all zero session key") void testDeriveKeys_AllZeroSessionKey() { // Given byte[] zeroSessionKey = new byte[16]; // All zeros int dialect = Smb2Constants.SMB2_DIALECT_0311; // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
checkNodeStatusData(); return isPermanent; } /** * Retrieves the MAC address of the remote network interface. Samba returns all zeros. * * @return the MAC address as an array of six bytes * @throws UnknownHostException if the host cannot be resolved to * determine the MAC address. */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/BufferCacheImplTest.java
@Test @DisplayName("Cache size 0: release zeroes but does not cache; getBuffer allocates new") void zeroSizedCacheDoesNotStore() { BufferCacheImpl impl = new BufferCacheImpl(0, 8); byte[] supplied = new byte[3]; supplied[0] = 1; supplied[1] = 2; // Release must not throw and must zero the supplied arrayRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java
// Test with zero byte[] zeroBytes = new byte[] { 0x00, 0x00, 0x00, 0x00 }; AvFlags zeroAvFlags = new AvFlags(zeroBytes); assertNotNull(zeroAvFlags, "AvFlags object should not be null for zero bytes"); assertEquals(0, zeroAvFlags.getFlags(), "Flags should be 0 for zero bytes"); // Test with negative integer (two's complement)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
void testEncodeZeroLength() { // Test encoding with zero length byte[] data = { 0x01, 0x02, 0x03 }; ByteEncodable encodable = new ByteEncodable(data, 0, 0); byte[] dest = new byte[3]; int encodedLen = encodable.encode(dest, 0); // Verify encoded length assertEquals(0, encodedLen, "Encoded length should be zero for zero length encodable");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/UnicodeString.java
* */ public class UnicodeString extends rpc.unicode_string { boolean zterm; /** * Constructs a UnicodeString with zero termination option. * * @param zterm * whether the string should be zero terminated */ public UnicodeString(final boolean zterm) { this.zterm = zterm; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.7K bytes - Viewed (0)