Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for EncryptionNegotiateContext (0.97 sec)

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

         * @param ciphers array of encryption cipher IDs to negotiate
         */
        public EncryptionNegotiateContext(final Configuration config, final int ciphers[]) {
            this.ciphers = ciphers;
        }
    
        /**
         * Default constructor for decoding.
         */
        public EncryptionNegotiateContext() {
        }
    
        /**
         * Gets the supported encryption 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/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_CCM, EncryptionNegotiateContext.CIPHER_AES128_GCM, 3, 4 };
    
                context = new EncryptionNegotiateContext(mockConfig, ciphers);
                int encodedSize = context.encode(buffer, 0);
    
                EncryptionNegotiateContext decoded = new EncryptionNegotiateContext();
                int decodedSize = decoded.decode(buffer, 0, encodedSize);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                        { EncryptionNegotiateContext.CIPHER_AES128_CCM, EncryptionNegotiateContext.CIPHER_AES128_GCM, 0x3, 0x4 };
                EncryptionNegotiateContext originalContext = new EncryptionNegotiateContext(mockConfig, originalCiphers);
    
                int encoded = originalContext.encode(buffer, 0);
    
                EncryptionNegotiateContext decodedContext = new EncryptionNegotiateContext();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

                        ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_GCM);
                        ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_CCM);
                    }
    
                    // Always include AES-128 for compatibility
                    ciphers.add(EncryptionNegotiateContext.CIPHER_AES128_GCM);
                    ciphers.add(EncryptionNegotiateContext.CIPHER_AES128_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)
  5. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            new SecureRandom().nextBytes(key2);
    
            Smb2EncryptionContext context1 =
                    new Smb2EncryptionContext(EncryptionNegotiateContext.CIPHER_AES128_GCM, DialectVersion.SMB311, key1, key1);
    
            Smb2EncryptionContext context2 =
                    new Smb2EncryptionContext(EncryptionNegotiateContext.CIPHER_AES128_GCM, DialectVersion.SMB311, key2, key2);
    
            // When - Wipe keys from context1
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("EncryptionNegotiateContext Tests")
        class EncryptionNegotiateContextTest {
    
            private EncryptionNegotiateContext context;
            private int[] testCiphers;
    
            @BeforeEach
            void setUp() {
                testCiphers = new int[] { EncryptionNegotiateContext.CIPHER_AES128_CCM, EncryptionNegotiateContext.CIPHER_AES128_GCM };
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            return ctx;
        }
    
        private NegotiateContextRequest createMockEncryptionContext() {
            EncryptionNegotiateContext ctx = new EncryptionNegotiateContext();
            try {
                setPrivateField(ctx, "ciphers",
                        new int[] { EncryptionNegotiateContext.CIPHER_AES128_GCM, EncryptionNegotiateContext.CIPHER_AES128_CCM });
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                if (ncr == null) {
                    continue;
                }
                if (!foundEnc && ncr.getContextType() == EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE) {
                    foundEnc = true;
                    final EncryptionNegotiateContext enc = (EncryptionNegotiateContext) ncr;
                    if (!checkEncryptionContext(req, enc)) {
                        return false;
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportImplTest.java

    import jcifs.internal.smb1.com.ServerData;
    import jcifs.internal.smb1.com.SmbComNegotiateResponse;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.smb2.Smb2EncryptionContext;
    import jcifs.internal.smb2.nego.EncryptionNegotiateContext;
    import jcifs.internal.smb2.nego.Smb2NegotiateResponse;
    import jcifs.util.transport.Request;
    
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbTransportImplTest {
    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/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, contexts[0].getContextType());
    
            // Verify encryption context
            assertTrue(contexts[1] instanceof EncryptionNegotiateContext);
            assertEquals(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE, contexts[1].getContextType());
    
            // Verify salt was generated
            assertArrayEquals(testSalt, request.getPreauthSalt());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top