Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 36 for sessionKey (0.28 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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)
  2. src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java

         *
         * @param dialect the SMB dialect version
         * @param sessionKey the base session key
         * @param preauthIntegrity the pre-authentication integrity hash (for SMB 3.1.1) or null
         * @return derived signing key
         */
        public static byte[] deriveSigningKey(final int dialect, final byte[] sessionKey, final byte[] preauthIntegrity) {
            return derive(sessionKey, dialect == Smb2Constants.SMB2_DIALECT_0311 ? SIGNLABEL_311 : SIGNLABEL_300,
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. 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)
  4. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

            super(andx);
            command = SMB_COM_SESSION_SETUP_ANDX;
            this.session = session;
            this.cred = cred;
    
            sessionKey = session.transport.sessionKey;
            capabilities = session.transport.capabilities;
    
            if (session.transport.server.security == SECURITY_USER) {
                if (cred instanceof final NtlmPasswordAuthentication auth) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            this.cipherId = cipherId;
            this.dialect = dialect;
            this.keyManager = keyManager;
            this.sessionKey = sessionKey != null ? sessionKey.clone() : null;
            this.preauthIntegrityHash = preauthHash != null ? preauthHash.clone() : null;
    
            // Generate unique session ID for key management
    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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/test/java/jcifs/smb/SmbTransportImplTest.java

            }
    
            @Test
            @DisplayName("createEncryptionContext selects AES-CCM for SMB 3.0 and AES-GCM for SMB 3.1.1")
            void createEncryptionContext_happyDialects() throws Exception {
                byte[] sessionKey = new byte[16];
                byte[] preauth = new byte[16];
    
                // SMB 3.0 -> AES-128-CCM
                setField(transport, "smb2", true);
    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)
Back to Top