Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for encryptionContext (0.06 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/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