- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 147 for key1 (0.02 sec)
-
src/test/java/jcifs/util/SecureKeyManagerTest.java
public void testGenerateRandomKey() { byte[] key1 = keyManager.generateRandomKey(32); byte[] key2 = keyManager.generateRandomKey(32); assertNotNull(key1, "Should generate key 1"); assertNotNull(key2, "Should generate key 2"); assertEquals(32, key1.length, "Key 1 should have correct length"); assertEquals(32, key2.length, "Key 2 should have correct length");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsBuilderTest.java
assertEquals(100, builder.initialSettings.get("key2")); assertEquals(true, builder.initialSettings.get("key3")); // Test overwriting existing setting builder.addInitialSettings("key1", "newValue1"); assertEquals(3, builder.initialSettings.size()); assertEquals("newValue1", builder.initialSettings.get("key1")); } @Test
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
assertEquals(exception.getMessage(), deserialized.getMessage()); assertEquals(exception.getContext().get("key1"), deserialized.getContext().get("key1")); assertEquals(exception.getContext().get("key2"), deserialized.getContext().get("key2")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
Smb2EncryptionContext context2 = new Smb2EncryptionContext(EncryptionNegotiateContext.CIPHER_AES128_GCM, DialectVersion.SMB311, key2, key2); // When - Wipe keys from context1 context1.secureWipeKeys(); // Then - Context2 should still be functional assertDoesNotThrow(() -> {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/audit/SecurityAuditLoggerTest.java
} @Test @DisplayName("Test log event") void testLogEvent() { Map<String, Object> context = new HashMap<>(); context.put("key1", "value1"); context.put("key2", "value2"); logger.logEvent(EventType.CONFIGURATION_CHANGE, Severity.INFO, "Configuration changed", context); Map<EventType, Long> stats = logger.getStatistics();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/DES.java
key8[2] = (byte) (((key7[1] & 0x03) << 5 | (key7[2] & 0xff) >> 3 & 0xff) & 0xff); key8[3] = (byte) (((key7[2] & 0x07) << 4 | (key7[3] & 0xff) >> 4 & 0xff) & 0xff); key8[4] = (byte) (((key7[3] & 0x0F) << 3 | (key7[4] & 0xff) >> 5 & 0xff) & 0xff); key8[5] = (byte) (((key7[4] & 0x1F) << 2 | (key7[5] & 0xff) >> 6 & 0xff) & 0xff); key8[6] = (byte) (((key7[5] & 0x3F) << 1 | (key7[6] & 0xff) >> 7 & 0xff) & 0xff);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
} @Test @DisplayName("E: splits 7-byte keys into 8-byte DES blocks and concatenates") void testE_blockSplitConsistency() throws ShortBufferException { // Arrange byte[] key14 = hex("01020304050607 11121314151617"); // two 7-byte chunks byte[] key7 = Arrays.copyOfRange(key14, 0, 7); byte[] data8 = NtlmUtil.S8; byte[] out14 = new byte[16];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (1) -
cmd/xl-storage-meta-inline.go
for i := range sz { var key []byte key, buf, err = msgp.ReadMapKeyZC(buf) if err != nil { return keys, err } if len(key) == 0 { return keys, fmt.Errorf("xlMetaInlineData: key %d is length 0", i) } keys = append(keys, string(key)) // Skip data... _, buf, err = msgp.ReadBytesZC(buf) if err != nil { return keys, err } } return keys, nil }Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
} byte[] key = null; byte[] keyCopy = null; try { // Get the key and create a defensive copy for SecretKeySpec key = encrypt ? getEncryptionKey() : getDecryptionKey(); keyCopy = Arrays.copyOf(key, key.length); // Validate key length matches expected cipher requirementsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureKeyManager.java
} /** * Generate a random key * * @param length key length in bytes * @return random key bytes */ public byte[] generateRandomKey(int length) { checkNotClosed(); byte[] key = new byte[length]; secureRandom.nextBytes(key); return key; } /** * Clear all stored keys */ public void clearAllKeys() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 21.5K bytes - Viewed (0)