- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 51 for nextBytes (0.05 sec)
-
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
private byte[] testNonce; private long testSessionId; @BeforeEach void setUp() { transformHeader = new Smb2TransformHeader(); testNonce = new byte[16]; new SecureRandom().nextBytes(testNonce); testSessionId = 0x123456789ABCDEF0L; } @Test @DisplayName("Should create transform header with correct size") void testTransformHeaderSize() { // When
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/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
void testConstructorWithParameters() { int[] hashAlgos = { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 }; byte[] salt = new byte[32]; new SecureRandom().nextBytes(salt); context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, context.getContextType());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HuffmanTest.kt
for (i in s.indices) { assertRoundTrip(s.substring(0, i).encodeUtf8()) } val random = Random(123456789L) val buf = ByteArray(4096) random.nextBytes(buf) assertRoundTrip(buf.toByteString()) } private fun assertRoundTrip(data: ByteString) { val encodeBuffer = Buffer() encode(data, encodeBuffer)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
} else { // NTLM2 Session Response final byte[] clientChallenge = new byte[24]; tc.getConfig().getRandom().nextBytes(clientChallenge); java.util.Arrays.fill(clientChallenge, 8, 24, (byte) 0x00); final byte[] ntlm2Response = NtlmUtil.getNTLM2Response(passwordHash, type2.getChallenge(), clientChallenge);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt
assertThat(actual).isEqualTo(expected) } companion object { private fun binaryData(length: Int): ByteString { val junk = ByteArray(length) Random(0).nextBytes(junk) return junk.toByteString() } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
case 4: case 5: // NTLMv2 - secure if (this.clientChallenge == null) { this.clientChallenge = new byte[8]; tc.getConfig().getRandom().nextBytes(this.clientChallenge); } return NtlmUtil.getLMv2Response(this.domain, this.username, getPasswordAsCharArray(), chlng, this.clientChallenge); default:
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
} public void testString() { Random random = new Random(); for (int i = 0; i < 100; i++) { byte[] bytes = new byte[64]; random.nextBytes(bytes); String s = new String(bytes, UTF_16LE); // so all random strings are valid assertEquals( new Sink(4).putUnencodedChars(s).hash(), new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java
private static final int LEASE_KEY_SIZE = 16; /** * Create a new random lease key */ public Smb2LeaseKey() { this.key = new byte[LEASE_KEY_SIZE]; RANDOM.nextBytes(this.key); } /** * Create a lease key from existing bytes * * @param key 16-byte array * @throws IllegalArgumentException if key is not 16 bytes */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 3.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
hasher.assertBytes(new byte[] {1, 2}); } public void testString() { Random random = new Random(); for (int i = 0; i < 100; i++) { byte[] bytes = new byte[64]; random.nextBytes(bytes); String s = new String(bytes, UTF_16LE); // so all random strings are valid assertEquals( new TestHasher().putUnencodedChars(s).hash(),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockContext.getConfig()).thenReturn(mockConfig); testFileId = new byte[16]; new SecureRandom().nextBytes(testFileId); outputBuffer = new byte[4096]; request = new Smb2ReadRequest(mockConfig, testFileId, outputBuffer, 0); } @Nested @DisplayName("Constructor Tests")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0)