Package org.gudy.bouncycastle.openssl
Class PEMUtilities
- java.lang.Object
-
- org.gudy.bouncycastle.openssl.PEMUtilities
-
final class PEMUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PEMUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static byte[]
crypt(boolean encrypt, java.lang.String provider, byte[] bytes, char[] password, java.lang.String dekAlgName, byte[] iv)
private static javax.crypto.SecretKey
getKey(char[] password, java.lang.String algorithm, int keyLength, byte[] salt)
private static javax.crypto.SecretKey
getKey(char[] password, java.lang.String algorithm, int keyLength, byte[] salt, boolean des2)
-
-
-
Method Detail
-
crypt
static byte[] crypt(boolean encrypt, java.lang.String provider, byte[] bytes, char[] password, java.lang.String dekAlgName, byte[] iv) throws java.io.IOException
- Throws:
java.io.IOException
-
getKey
private static javax.crypto.SecretKey getKey(char[] password, java.lang.String algorithm, int keyLength, byte[] salt) throws java.io.IOException
- Throws:
java.io.IOException
-
getKey
private static javax.crypto.SecretKey getKey(char[] password, java.lang.String algorithm, int keyLength, byte[] salt, boolean des2) throws java.io.IOException
- Throws:
java.io.IOException
-
-