- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for GeneralSecurityException (0.51 sec)
-
src/main/java/jcifs/pac/PacMac.java
* @param data the data to calculate the MAC for * @return the calculated MAC bytes * @throws GeneralSecurityException if cryptographic operations fail */ public static byte[] calculateMacArcfourHMACMD5(int keyusage, Key key, byte[] data) throws GeneralSecurityException { int ms_usage = mapArcfourMD5KeyUsage(keyusage); Mac mac = Mac.getInstance("HmacMD5");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
* Initialize secure credential storage with a master password * * @param masterPassword the master password for encryption * @throws GeneralSecurityException if encryption setup fails */ public SecureCredentialStorage(char[] masterPassword) throws GeneralSecurityException { if (masterPassword == null || masterPassword.length == 0) { throw new IllegalArgumentException("Master password cannot be null or empty");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
* the pre-authentication integrity hash (for SMB 3.1.1) * @throws GeneralSecurityException * if the signing algorithm cannot be initialized * */ public Smb2SigningDigest(final byte[] sessionKey, final int dialect, final byte[] preauthIntegrityHash) throws GeneralSecurityException { switch (dialect) { case Smb2Constants.SMB2_DIALECT_0202:
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
* @return the Type 3 message to send to the server * @throws GeneralSecurityException if a cryptographic error occurs * @throws CIFSException if a CIFS protocol error occurs */ protected Type3Message createType3Message(final Type2Message msg2) throws GeneralSecurityException, CIFSException { if (this.auth instanceof NtlmNtHashAuthenticator) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
* @param clientChallenge the client challenge bytes * @return the calculated response * @throws GeneralSecurityException if a cryptographic error occurs */ public static byte[] getNTLM2Response(final byte[] passwordHash, final byte[] serverChallenge, final byte[] clientChallenge) throws GeneralSecurityException { final byte[] sessionHash = new byte[8]; final MessageDigest md5 = Crypto.getMD5();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
* Perform automatic key rotation using the stored session key following SMB3 key derivation * * @throws GeneralSecurityException if key rotation fails */ private void performAutomaticKeyRotation() throws GeneralSecurityException { if (sessionKey == null) { throw new GeneralSecurityException("Session key not available for automatic rotation"); }
Registered: 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/pac/kerberos/KerberosEncData.java
* @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; byte[] decrypt = null; decrypt = switch (type) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacMacTest.java
/** * Test method for * {@link jcifs.pac.PacMac#calculateMacArcfourHMACMD5(int, java.security.Key, byte[])}. * * @throws GeneralSecurityException */ @Test void testCalculateMacArcfourHMACMD5() throws GeneralSecurityException { // Using a key with a known value for reproducibility SecretKeySpec key = new SecretKeySpec(new byte[16], "ARCFOUR");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
} /** * Test decrypt with RC4 encryption. * * @throws GeneralSecurityException if a security error occurs */ @Test void testDecryptRc4() throws GeneralSecurityException { // This is a simplified test and does not use real encrypted data from Kerberos // It mainly tests the decryption logic path
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.7K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
* @throws GeneralSecurityException if a cryptographic error occurs * @throws CIFSException if a CIFS protocol error occurs */ public Type3Message(final CIFSContext tc, final Type2Message type2, final String targetName, final String password, final String domain, final String user, final String workstation, final int flags) throws GeneralSecurityException, CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0)