- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IvParameterSpec (0.36 sec)
-
src/test/java/jcifs/util/CryptoTest.java
new SecureRandom().nextBytes(key); new SecureRandom().nextBytes(iv); // When SecretKeySpec keySpec = new SecretKeySpec(key, "AES"); IvParameterSpec ivSpec = new IvParameterSpec(iv); Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec); byte[] encrypted = cipher.doFinal(plaintext);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
import java.security.Key; import java.security.MessageDigest; import java.util.Arrays; import java.util.Map; import javax.crypto.Cipher; import javax.crypto.Mac; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import javax.security.auth.kerberos.KerberosKey; /** * Utility class for calculating and verifying PAC (Privilege Attribute Certificate) message authentication codes.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0)