Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for cipherB (0.05 sec)

  1. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

        private int[] ciphers;
    
        /**
         * Constructs an encryption negotiate context.
         *
         * @param config the configuration (currently unused)
         * @param ciphers array of encryption cipher IDs to negotiate
         */
        public EncryptionNegotiateContext(final Configuration config, final int ciphers[]) {
            this.ciphers = ciphers;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                final Cipher cipher = Cipher.getInstance(transformation);
                final GCMParameterSpec gcmSpec = new GCMParameterSpec(getAuthTagLength() * 8, nonce);
    
                cipher.init(encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, keySpec, gcmSpec);
                return cipher;
            } finally {
                // Guaranteed cleanup of all key material
                if (key != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

                if (config.isEncryptionEnabled()) {
                    // Build cipher list based on AES-256 support
                    List<Integer> ciphers = new ArrayList<>();
    
                    // Prefer GCM over CCM for better performance
                    if (config.isAES256Enabled()) {
                        ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_GCM);
                        ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_CCM);
                    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should handle different cipher IDs")
        void testDifferentCipherIds() {
            // Test cipher ID 1 (AES-CCM)
            Smb2EncryptionContext context1 = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
            assertEquals(1, context1.getCipherId(), "Should handle cipher ID 1");
    
            // Test cipher ID 2 (AES-GCM)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                return false;
            }
    
            boolean valid = false;
            for (final int cipher : rec.getCiphers()) {
                if (cipher == ec.getCiphers()[0]) {
                    valid = true;
                }
            }
            if (!valid) {
                log.error("Server returned invalid cipher selection");
                return false;
            }
            return true;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  6. src/main/java/jcifs/Configuration.java

         *
         * @return preferred encryption cipher list in order of preference for SMB3 encryption
         * @since 2.2
         */
        String getPreferredCiphers();
    
        /**
         * Property {@code jcifs.smb.client.aes256Enabled} (boolean, default true)
         *
         * @return whether AES-256 encryption ciphers are enabled for SMB3.x
         * @since 2.2
         */
        boolean isAES256Enabled();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/config/BaseConfiguration.java

        /** Whether SMB3 encryption is enabled */
        protected boolean encryptionEnabled = false;
        /** Whether SMB3 compression is enabled */
        protected boolean compressionEnabled = false;
        /** Preferred encryption ciphers in order of preference */
        protected String preferredCiphers = "AES_128_GCM,AES_128_CCM,AES_256_GCM,AES_256_CCM";
        /** Whether AES-256 encryption is enabled */
        protected boolean aes256Enabled = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
Back to top