Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for getSalt (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertNotNull(context);
                assertArrayEquals(hashAlgos, context.getHashAlgos());
                assertArrayEquals(salt, context.getSalt());
                assertEquals(0, context.getHashAlgos().length);
                assertEquals(0, context.getSalt().length);
            }
    
            @Test
            @DisplayName("Should create instance with default constructor")
            void testDefaultConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertArrayEquals(originalContext.getHashAlgos(), decodedContext.getHashAlgos());
                assertArrayEquals(originalContext.getSalt(), decodedContext.getSalt());
                assertEquals(originalContext.size(), decodedContext.size());
            }
    
            @Test
            @DisplayName("Should handle buffer boundaries correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, context.getContextType());
                assertArrayEquals(hashAlgos, context.getHashAlgos());
                assertArrayEquals(salt, context.getSalt());
            }
    
            @Test
            @DisplayName("Should create context with default constructor")
            void testDefaultConstructor() {
                context = new PreauthIntegrityNegotiateContext();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            byte[] salt = storage.getSalt();
            assertNotNull(salt, "Salt should not be null");
            assertEquals(32, salt.length, "Salt should be 32 bytes");
    
            // Salt should be different for each instance
            SecureCredentialStorage storage2 = new SecureCredentialStorage(masterPassword.clone());
            try {
                byte[] salt2 = storage2.getSalt();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            assertNotNull(context);
            assertEquals(PreauthIntegrityService.HASH_ALGO_SHA512, context.getHashAlgorithm());
            assertArrayEquals(salt, context.getSalt());
            assertTrue(context.isValid());
            assertNotNull(context.getCurrentHash());
        }
    
        @Test
        @DisplayName("Test preauth hash updates")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/PreauthIntegrityService.java

                this.hashAlgorithm = hashAlgorithm;
                this.currentHash = new byte[HASH_SIZE_SHA512]; // Initialize with zeros
                this.isValid = true;
            }
    
            public byte[] getSalt() {
                return salt.clone();
            }
    
            public int getHashAlgorithm() {
                return hashAlgorithm;
            }
    
            public byte[] getCurrentHash() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SecureCredentialStorage.java

            return decryptCredentials(encrypted);
        }
    
        /**
         * Get the salt used for key derivation
         *
         * @return salt bytes
         */
        public byte[] getSalt() {
            return salt != null ? salt.clone() : null;
        }
    
        /**
         * Derive encryption key from password using PBKDF2
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        // re-order
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // evict 3, 4, 5
        getAll(cache, asList(10));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(6, 7, 8, 9, 0, 1, 2, 10);
    
        // re-order
        getAll(cache, asList(6, 7, 8));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 15K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("c", Iterables.getLast(list));
      }
    
      public void testGetLast_emptyList() {
        List<String> list = emptyList();
        assertThrows(NoSuchElementException.class, () -> Iterables.getLast(list));
      }
    
      public void testGetLast_sortedSet() {
        SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a");
        assertEquals("c", Iterables.getLast(sortedSet));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            ComponentUtil.register(new CrawlingInfoService() {
                private CrawlingInfo storedInfo;
                private List<CrawlingInfoParam> storedParams;
    
                @Override
                public CrawlingInfo getLast(String sessionId) {
                    return null; // Return null to simulate create scenario
                }
    
                @Override
                public void store(CrawlingInfo entity) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 26.6K bytes
    - Viewed (0)
Back to top