- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for zeroKey (0.04 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
void testSourceKeyAllZeros() { // Given byte[] zeroKey = new byte[SOURCE_KEY_SIZE]; // All zeros by default SrvCopychunk chunk = new SrvCopychunk(1, 2, 3); SrvCopychunkCopy copy = new SrvCopychunkCopy(zeroKey, chunk); byte[] buffer = new byte[100]; // When int bytesWritten = copy.encode(buffer, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/BufferCacheImplTest.java
// Assert: original array is zeroed in-place for (byte value : b) { assertEquals(0, value, "Released buffer must be zeroed"); } // Next get should return the same instance from cache byte[] reused = impl.getBuffer(); assertSame(b, reused, "Buffer should be reused from cache"); // And it should still be zeroed for (byte value : reused) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java
// Context handle is modified by the server (typically zeroed out) if (contextHandle == null) { contextHandle = new byte[20]; } buf.readOctetArray(contextHandle, 0, 20); } /** * Checks if the context handle has been invalidated (all zeros). * A successful unregistration typically results in a zeroed context handle. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java
assertEquals("Counts not as expected", Ints.asList(deltas), actualCounts); } finally { pool.shutdownNow(); } // Since we have access to the backing map, verify that there are no zeroes in the map for (AtomicInteger value : map.values()) { assertTrue("map should not contain a zero", value.get() != 0); } } private static class MutateTask implements Callable<int[]> {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 5.7K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java
checkVersionsOrder(c, d); checkVersionsOrder(b, d); checkVersionsOrder(a, d); } /** * Test all versions are equal when starting with many leading zeroes regardless of string length * (related to MNG-6572 optimization) */ @Test void testVersionEqualWithLeadingZeroes() { // versions with string lengths from 1 to 19
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 17.8K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
assertEquals((byte) 0x42, aad[0]); assertEquals((byte) 0x4D, aad[1]); 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
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
longestRunOffset = currentRunOffset longestRunLength = currentRunLength } i += 2 } } // Emit each 2-byte group in hex, separated by ':'. The longest run of zeroes is "::". val result = Buffer() var i = 0 while (i < address.size) { if (i == longestRunOffset) { result.writeByte(':'.code) i += longestRunLengthRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// When int bytesWritten = request.writeBytesWireFormat(buffer, 0); // Then assertTrue(bytesWritten > 0); // Verify negotiate context offset/count area is zeroed assertEquals(0, SMBUtil.readInt8(buffer, 28)); } @Test @DisplayName("Should read empty bytes from wire format") void testReadBytesWireFormat() { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0)