Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for encryptionContext (0.88 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Given
            int originalCipherId = encryptionContext.getCipherId();
            DialectVersion originalDialect = encryptionContext.getDialect();
    
            // When - Modify the original key array
            testEncryptionKey[0] = (byte) ~testEncryptionKey[0];
    
            // Then - Context should not be affected by external modifications
            assertEquals(originalCipherId, encryptionContext.getCipherId(), "Cipher ID should remain unchanged");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

                        this.preauthIntegrityHash = null;
                    }
    
                    // Clear encryption context
                    if (this.encryptionContext != null) {
                        try {
                            this.encryptionContext = null;
                        } catch (Exception e) {
                            log.debug("Error clearing encryption context during emergency cleanup", e);
                        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbSessionImplTest.java

            // Set encryption context and verify delegation
            Smb2EncryptionContext enc = mock(Smb2EncryptionContext.class);
            setField(session, "encryptionContext", enc);
            setField(session, "sessionId", 99L);
    
            when(enc.encryptMessage(any(byte[].class), eq(99L))).thenReturn(new byte[] { 9, 9 });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top