Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for encryptionKey (0.12 sec)

  1. src/main/java/jcifs/internal/smb1/com/ServerData.java

        public int serverTimeZone;
        /**
         * Length of the encryption key.
         */
        public int encryptionKeyLength;
        /**
         * Encryption key for password encryption.
         */
        public byte[] encryptionKey;
        /**
         * Server's globally unique identifier.
         */
        public byte[] guid;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                        if (server.encryptedPasswords) {
                            this.lmHash = a.getAnsiHash(tc, server.encryptionKey);
                            this.ntHash = a.getUnicodeHash(tc, server.encryptionKey);
                            // prohibit HTTP auth attempts for the null session
                            if (this.lmHash.length == 0 && this.ntHash.length == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

            SmbTransport.ServerData serverData = mockTransport.new ServerData();
            serverData.security = ServerMessageBlock.SECURITY_USER;
            serverData.encryptedPasswords = true;
            serverData.encryptionKey = new byte[8];
    
            // Configure mock transport
            mockTransport.server = serverData;
            mockTransport.sessionKey = 0x12345678;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

        private static class ServerDataStub extends ServerData {
            public ServerDataStub() {
                this.security = SmbConstants.SECURITY_USER;
                this.encryptedPasswords = false;
                this.encryptionKey = new byte[0];
            }
        }
    
        @Test
        void anonymousGuestCredentials() throws Exception {
            setupNegotiateStubs();
    
            NtlmPasswordAuthenticator auth = mock(NtlmPasswordAuthenticator.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                if (session.transport.server.encryptedPasswords) {
                    // encrypted
                    password = session.auth.getAnsiHash(session.transport.server.encryptionKey);
                    passwordLength = password.length;
                } else if (DISABLE_PLAIN_TEXT_PASSWORDS) {
                    throw new RuntimeException("Plain text passwords are disabled");
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

            SmbTransport.ServerData serverData = transport.new ServerData();
            serverData.security = 0; // Set to 0 or appropriate value for SECURITY_SHARE
            serverData.encryptionKey = new byte[8]; // Initialize with empty encryption key
    
            // Configure the mock transport with the server data
            transport.server = serverData;
    
            smbtStatic = mockStatic(SmbTransport.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                    this.passwordLength = 1;
                } else if (this.server.encryptedPasswords) {
                    // encrypted
                    try {
                        this.password = pwAuth.getAnsiHash(this.ctx, this.server.encryptionKey);
                    } catch (final GeneralSecurityException e) {
                        throw new RuntimeCIFSException("Failed to encrypt password", e);
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. docs/smb3-features/02-persistent-handles-design.md

    ### 12.1 Handle State Encryption
    ```java
    public class SecureHandleStorage {
        private final SecretKey encryptionKey;
        
        public void saveEncrypted(HandleInfo handle, Path file) throws Exception {
            Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
            cipher.init(Cipher.ENCRYPT_MODE, encryptionKey);
            
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportImplTest.java

            // SMB1 negotiation with server data
            SmbComNegotiateResponse smb1 = new SmbComNegotiateResponse(ctx);
            ServerData sd = smb1.getServerData();
            sd.encryptionKey = new byte[] { 1, 2, 3 };
            setField(transport, "negotiated", smb1);
            assertArrayEquals(new byte[] { 1, 2, 3 }, transport.getServerEncryptionKey());
    
            // SMB2 negotiation never exposes key via this API
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbSessionImpl.java

                            }
                        } else {
                            log.debug("Initialize signing");
                            byte[] signingKey = npa.getSigningKey(getContext(), negoResp.getServerData().encryptionKey);
                            if (signingKey == null) {
                                throw new SmbException("Need a signature key but the server did not provide one");
                            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
Back to top