Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for Truncated (0.25 sec)

  1. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            // Verify customData part (should be truncated)
            byte[] expectedCustomData = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
            byte[] actualCustomData = new byte[8];
            System.arraycopy(value, 8, actualCustomData, 0, 8);
            assertArrayEquals(expectedCustomData, actualCustomData);
    
            // Verify machineId part (should be truncated)
            byte[] expectedMachineId = new byte[32];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            });
    
            assertEquals("Invalid avLen for AvEOL", exception.getMessage(), "Should throw exception for invalid EOL");
        }
    
        /**
         * Test decode with truncated data
         */
        @Test
        @DisplayName("Decode should handle truncated data")
        void testDecodeTruncatedData() {
            byte[] truncatedData = new byte[3]; // Less than 4 bytes
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/HMACT64.java

    import java.security.MessageDigest;
    
    /**
     * This is an implementation of the HMACT64 keyed hashing algorithm.
     * HMACT64 is defined by Luke Leighton as a modified HMAC-MD5 (RFC 2104)
     * in which the key is truncated at 64 bytes (rather than being hashed
     * via MD5).
     */
    public class HMACT64 extends MessageDigest implements Cloneable {
    
        private static final int BLOCK_LENGTH = 64;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/HMACT64.java

    import java.security.MessageDigest;
    
    /**
     * This is an implementation of the HMACT64 keyed hashing algorithm.
     * HMACT64 is defined by Luke Leighton as a modified HMAC-MD5 (RFC 2104)
     * in which the key is truncated at 64 bytes (rather than being hashed
     * via MD5).
     */
    class HMACT64 extends MessageDigest implements Cloneable {
    
        private static final int BLOCK_LENGTH = 64;
    
        private static final byte IPAD = (byte) 0x36;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmContext.java

            byte[] trunc = new byte[8];
            System.arraycopy(dgst, 0, trunc, 0, 8);
    
            if (log.isDebugEnabled()) {
                log.debug("Digest " + Hexdump.toHexString(dgst));
                log.debug("Truncated " + Hexdump.toHexString(trunc));
            }
    
            if ((this.ntlmsspFlags & NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH) != 0) {
                try {
                    trunc = this.sealClientHandle.doFinal(trunc);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                // Challenge bytes would be at 24-31 but we're truncated
    
                // When & Then
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> new Type2Message(truncatedMessage));
            }
    
            @Test
            @DisplayName("parse should handle truncated message missing target info")
            void testParse_InputLengthTooSmallForTargetInfo() {
                // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/PacMac.java

         * @param usage the Kerberos key usage number for this operation
         * @param baseKey the base Kerberos key for key derivation
         * @param input the data to calculate the MAC for
         * @return the calculated MAC bytes (truncated to 12 bytes)
         * @throws GeneralSecurityException if cryptographic operations fail
         */
        public static byte[] calculateMacHMACAES(int usage, KerberosKey baseKey, byte[] input) throws GeneralSecurityException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        }
    
        @Test
        @DisplayName("byte[] ctor: malformed DER is wrapped as PACDecodingException (IOException path)")
        void byteArrayConstructor_malformedDER_throwsWrapped() {
            // Arrange: Truncated SEQUENCE (0x30 len=2 but only 1 byte of content)
            byte[] malformed = new byte[] { 0x30, 0x02, 0x01 };
    
            // Act + Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            }
            String longText = sb.toString();
            String id = SuggestUtil.createSuggestTextId(longText);
            assertNotNull(id);
            assertEquals(445, id.length()); // Should be truncated to ID_MAX_LENGTH
        }
    
        @Test
        public void testParseQuery() {
            // Test normal query
            String query = "test query";
            String field = "content";
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/Name.java

                          */
    
        Name() {
        }
    
        /**
         * Creates a NetBIOS name with the specified attributes.
         *
         * @param name the NetBIOS name (will be truncated to 15 characters if longer)
         * @param hexCode the NetBIOS name type/suffix
         * @param scope the NetBIOS scope identifier (uses default if null or empty)
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top