Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for encryptMessage (0.1 seconds)

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

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

            byte[] smallMessage = new byte[5];
            assertDoesNotThrow(() -> context.encryptMessage(smallMessage, 1L));
    
            // Large message should trigger rotation and fail
            byte[] largeMessage = new byte[50];
            Exception exception = assertThrows(CIFSException.class, () -> context.encryptMessage(largeMessage, 2L));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

         * @param sessionId
         *            session identifier
         * @return encrypted message with transform header
         * @throws CIFSException
         *             if encryption fails
         */
        public byte[] encryptMessage(final byte[] message, final long sessionId) throws CIFSException {
            if (message == null) {
                throw new IllegalArgumentException("Message cannot be null");
            }
    
    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)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

         * @throws CIFSException if encryption fails or is not enabled
         */
        public byte[] encryptMessage(byte[] message) throws CIFSException {
            if (this.encryptionContext == null) {
                throw new CIFSException("Encryption not enabled for this session");
            }
            return this.encryptionContext.encryptMessage(message, this.sessionId);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
Back to Top