Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getRawKey (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/util/SecureKeyManagerTest.java

            byte[] rawKey = keyManager.getRawKey(sessionId);
            assertNotNull(rawKey, "Should retrieve raw key");
            assertArrayEquals(testKey, rawKey, "Raw key should match");
    
            // Verify we get a copy, not the original
            rawKey[0] = (byte) ~rawKey[0];
            byte[] rawKey2 = keyManager.getRawKey(sessionId);
            assertArrayEquals(testKey, rawKey2, "Should still match original");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            return this.cipherId;
        }
    
        private byte[] getEncryptionKey() {
            if (keyManager != null) {
                String encKeyId = sessionId + "-enc";
                byte[] key = keyManager.getRawKey(encKeyId);
                if (key == null) {
                    throw new IllegalStateException("Encryption key not found in SecureKeyManager");
                }
                return key;
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
Back to Top