Package org.gudy.bouncycastle.openssl
Class PEMUtilities
java.lang.Object
org.gudy.bouncycastle.openssl.PEMUtilities
-
Constructor Details
-
PEMUtilities
PEMUtilities()
-
-
Method Details
-
crypt
static byte[] crypt(boolean encrypt, String provider, byte[] bytes, char[] password, String dekAlgName, byte[] iv) throws IOException - Throws:
IOException
-
getKey
private static SecretKey getKey(char[] password, String algorithm, int keyLength, byte[] salt) throws IOException - Throws:
IOException
-
getKey
private static SecretKey getKey(char[] password, String algorithm, int keyLength, byte[] salt, boolean des2) throws IOException - Throws:
IOException
-