Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for calculation (2.09 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            assertEquals(100, info.sectPerAlloc);
            assertEquals(512, info.bytesPerSect);
            assertEquals(1000L * 100 * 512, info.getCapacity(), "Capacity calculation should be correct");
            assertEquals(500L * 100 * 512, info.getFree(), "Free space calculation should be correct");
        }
    
        /**
         * Tests the readDataWireFormat method with the SMB_QUERY_FS_SIZE_INFO information level.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacMac.java

         * This method implements the Microsoft variant of the Kerberos ARCFOUR-HMAC-MD5 checksum.
         *
         * @param keyusage the Kerberos key usage number for this operation
         * @param key the encryption key to use for MAC calculation
         * @param data the data to calculate the MAC for
         * @return the calculated MAC bytes
         * @throws GeneralSecurityException if cryptographic operations fail
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

                // This can occur due to padding alignment differences between size8() and pad8()
                if (log.isDebugEnabled()) {
                    log.debug("Size calculation mismatch: expected {} but got {} (difference: {})", exp, actual, actual - exp);
                }
            }
            return len;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

            assertEquals(8, emptyContext.size()); // Minimum size
            assertFalse(emptyContext.supportsAlgorithm(CompressionNegotiateContext.COMPRESSION_LZ77));
        }
    
        @Test
        @DisplayName("Test context size calculation")
        public void testContextSize() {
            int expectedSize = 8 + (3 * 2); // Header + 3 algorithms * 2 bytes each
            assertEquals(expectedSize, context.size());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacTest.java

            assertNotNull(e.getMessage());
        }
    
        @Test
        void testMockedSuccessfulParsing() throws PACDecodingException, IOException {
            // Test with mocked PacMac to avoid complex signature calculation
            try (MockedStatic<PacMac> pacMacMock = mockStatic(PacMac.class)) {
                // Mock the calculateMac method to return a valid checksum
                byte[] mockChecksum = new byte[16];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/NtlmFlags.java

        /**
         * Sent by the server in the Type 2 message to indicate that it is
         * including a Target Information block in the message. The Target
         * Information block is used in the calculation of the NTLMv2 response.
         */
        int NTLMSSP_NEGOTIATE_TARGET_INFO = 0x00800000;
    
        /**
         * Indicates that the NTLM version is included in the message.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/ntlmssp/NtlmFlags.java

        /**
        * Sent by the server in the Type 2 message to indicate that it is
        * including a Target Information block in the message.  The Target
        * Information block is used in the calculation of the NTLMv2 response.
        */
        int NTLMSSP_NEGOTIATE_TARGET_INFO = 0x00800000;
    
        /**
        * Indicates that 128-bit encryption is supported.
        */
        int NTLMSSP_NEGOTIATE_128 = 0x20000000;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

                    0, // shareAccess
                    0, // extFileAttributes
                    createOptions, mockAndX);
        }
    
        @Nested
        @DisplayName("Constructor createDisposition calculation")
        class CreateDispositionTests {
            static java.util.stream.Stream<Arguments> flagsProvider() {
                return java.util.stream.Stream.of(
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/MemoryUtil.java

    import java.time.LocalDateTime;
    import java.time.ZonedDateTime;
    import java.util.Collection;
    import java.util.Date;
    import java.util.Map;
    import java.util.Objects;
    
    /**
     * Utility class for memory operations and size calculations.
     */
    public final class MemoryUtil {
        private MemoryUtil() {
        }
    
        /**
         * Gets a formatted memory usage log string.
         *
         * @return formatted memory usage information
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SSPContext.java

        /**
         * Calculates a Message Integrity Code (MIC) for the given data.
         * @param data the data to calculate MIC for
         * @return MIC
         * @throws CIFSException if an error occurs calculating the MIC
         */
        byte[] calculateMIC(byte[] data) throws CIFSException;
    
        /**
         * Verifies a Message Integrity Code (MIC) for the given data.
         * @param data the data to verify
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top