- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 30 for sessionKey (0.17 seconds)
-
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
// Given byte[] sessionKey1 = new byte[16]; byte[] sessionKey2 = new byte[16]; new SecureRandom().nextBytes(sessionKey1); new SecureRandom().nextBytes(sessionKey2); int dialect = Smb2Constants.SMB2_DIALECT_0311; // When byte[] signingKey1 = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey1, preauthIntegrity);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
*/ public byte[] getSessionKey() { return sessionKey; } /** * Sets the session key. * * @param sessionKey The session key. */ public void setSessionKey(final byte[] sessionKey) { this.sessionKey = sessionKey; } @Override public byte[] toByteArray() { try {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 24.1K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
void testSessionKeyRetrieval() throws CIFSException { // When: Getting session key byte[] sessionKey = handle.getSessionKey(); // Then: Should return expected session key assertNotNull(sessionKey); assertArrayEquals(new byte[] { 1, 2, 3, 4 }, sessionKey); } @Test @DisplayName("Should handle max values configuration")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
*/ public Smb2SigningDigest(final byte[] sessionKey, final int dialect, final byte[] preauthIntegrityHash) throws GeneralSecurityException { switch (dialect) { case Smb2Constants.SMB2_DIALECT_0202: case Smb2Constants.SMB2_DIALECT_0210: this.algorithmName = "HmacSHA256"; this.provider = null; this.signingKey = sessionKey.clone(); break;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
private int negotiatedFlags2; private int maxMpxCount; private int snd_buf_size; private int recv_buf_size; private int tx_buf_size; private int capabilities; private final int sessionKey = 0x00000000; private boolean useUnicode; /** * Creates a new SMB1 negotiate response. * * @param ctx the CIFS context */ public SmbComNegotiateResponse(final CIFSContext ctx) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 15.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { // Combine session key with channel-specific data byte[] sessionKey = getSessionKey(); if (sessionKey != null) { baos.write(sessionKey); } baos.write(channel.getLocalInterface().getAddress().getAddress()); baos.write(channel.getRemoteInterface().getAddress().getAddress());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 20K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
// maxRawSize buffer[bufferIndex++] = (byte) 0x00; buffer[bufferIndex++] = (byte) 0x10; buffer[bufferIndex++] = 0; buffer[bufferIndex++] = 0; // sessionKey buffer[bufferIndex++] = 1; buffer[bufferIndex++] = 2; buffer[bufferIndex++] = 3; buffer[bufferIndex++] = 4; // capabilities buffer[bufferIndex++] = (byte) 0x80;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0)