- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 76 for encryption (1.38 sec)
-
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
/** * Test decrypt with an unsupported encryption type. */ @Test void testDecryptUnsupportedType() { Key key = new KerberosKey(null, new byte[16], 99, 0); byte[] data = new byte[16]; Exception exception = assertThrows(GeneralSecurityException.class, () -> KerberosEncData.decrypt(data, key, 99)); assertEquals("Unsupported encryption type 99", exception.getMessage()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
@CsvSource({ "true, true, SMB311, 2", // DFS + Encryption "false, true, SMB311, 1", // Encryption only "true, false, SMB311, 1", // DFS only "false, false, SMB311, 0", // Neither "true, true, SMB210, 1", // DFS only (no encryption for SMB2) "false, true, SMB210, 0" // Neither (no encryption for SMB2) })Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacSignature.java
/** * Kerberos encryption type for ARCFOUR-HMAC (RC4-HMAC). */ public static final int ETYPE_ARCFOUR_HMAC = 23; /** * Kerberos encryption type for AES-128 CTS mode with HMAC-SHA1-96. */ public static final int ETYPE_AES128_CTS_HMAC_SHA1_96 = 17; /** * Kerberos encryption type for AES-256 CTS mode with HMAC-SHA1-96. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/ServerData.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
/** * Utility class for calculating and verifying PAC (Privilege Attribute Certificate) message authentication codes. * This class provides methods for computing MACs using various Kerberos encryption types including * ARCFOUR-HMAC-MD5 and AES-based HMAC algorithms. */ public class PacMac { /** * Private constructor to prevent instantiation of utility class. */ private PacMac() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
import javax.security.auth.Destroyable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Secure credential storage with encryption at rest. * * Provides secure storage of passwords and other sensitive credentials * using AES-GCM encryption with PBKDF2 key derivation. * * Features: * - Encrypts credentials at rest using AES-256-GCM * - Uses PBKDF2 for key derivation from master password
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/RC4.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb1.util; /** * Implementation of the RC4 (ARCFOUR) stream cipher algorithm. * This class provides RC4 encryption/decryption functionality used in SMB1 protocol operations. */ public class RC4 { byte[] s; int i, j; /** * Default constructor for RC4 cipher.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/util/CryptoTest.java
} @Test @DisplayName("Should handle AES encryption operations") void testAESOperations() throws Exception { // Given byte[] key = new byte[16]; // 128-bit key byte[] iv = new byte[16]; // 128-bit IV byte[] plaintext = "This is test data for AES encryption test".getBytes(); new SecureRandom().nextBytes(key);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
EncryptionNegotiateContext encryption = new EncryptionNegotiateContext(); assertNotEquals(preauth.getContextType(), encryption.getContextType()); assertEquals(0x1, preauth.getContextType()); assertEquals(0x2, encryption.getContextType()); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
/** * Decrypts Kerberos encrypted data using the specified key. * * @param data the encrypted data to decrypt * @param key the decryption key * @param type the encryption type * @return the decrypted data * @throws GeneralSecurityException if decryption fails */ public static byte[] decrypt(byte[] data, Key key, int type) throws GeneralSecurityException { Cipher cipher = null;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.5K bytes - Viewed (0)