Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for engineReset (0.04 sec)

  1. src/test/java/jcifs/smb1/util/HMACT64Test.java

            // No exception means success
        }
    
        @Test
        void testEngineReset() {
            // Test engineReset()
            HMACT64 hmac = new HMACT64(TEST_KEY);
            hmac.engineUpdate(TEST_DATA, 0, TEST_DATA.length);
            hmac.engineReset();
            // After reset, should be able to digest again
            byte[] result = hmac.engineDigest();
            assertNotNull(result);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/HMACT64.java

            }
            try {
                md5 = MessageDigest.getInstance("MD5");
            } catch (final Exception ex) {
                throw new IllegalStateException(ex.getMessage());
            }
            engineReset();
        }
    
        private HMACT64(final HMACT64 hmac) throws CloneNotSupportedException {
            super("HMACT64");
            this.ipad = hmac.ipad;
            this.opad = hmac.opad;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/HMACT64.java

            }
            for (int i = length; i < BLOCK_LENGTH; i++) {
                this.ipad[i] = IPAD;
                this.opad[i] = OPAD;
            }
    
            this.md5 = Crypto.getMD5();
            engineReset();
        }
    
        private HMACT64(final HMACT64 hmac) throws CloneNotSupportedException {
            super("HMACT64");
            this.ipad = hmac.ipad;
            this.opad = hmac.opad;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/HMACT64Test.java

        }
    
        @Test
        void testEngineReset() throws NoSuchAlgorithmException {
            // Test engineReset()
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
                HMACT64 hmac = new HMACT64(TEST_KEY);
                hmac.engineReset();
                verify(mockMd5, times(2)).reset(); // Once in constructor, once in reset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  5. 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)
Back to top