Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MD4 (0.01 sec)

  1. src/main/java/jcifs/smb1/util/MD4.java

        /**
         * Creates a new MD4 message digest instance.
         * Initializes the digest with the MD4 algorithm parameters.
         */
        public MD4() {
            super("MD4");
            engineReset();
        }
    
        /**
         *    This constructor is here to implement cloneability of this class.
         */
        private MD4(final MD4 md) {
            this();
            context = md.context.clone();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/CryptoTest.java

        @Test
        @DisplayName("Should calculate MD4 hash correctly")
        void testMD4Hash() {
            // Given
            String input = "Hello World";
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md4 = Crypto.getMD4();
            byte[] hash = md4.digest(data);
    
            // Then
            assertNotNull(hash);
            assertEquals(16, hash.length); // MD4 produces 128-bit hash
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/Crypto.java

        /**
         *
         */
        private Crypto() {
        }
    
        /**
         * Get an MD4 message digest instance.
         * @return MD4 digest instance
         */
        public static MessageDigest getMD4() {
            try {
                return MessageDigest.getInstance("MD4", getProvider());
            } catch (final NoSuchAlgorithmException e) {
                throw new CIFSUnsupportedCryptoException(e);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top