Package org.cryptacular.pbe
Class OpenSSLEncryptionScheme
java.lang.Object
org.cryptacular.pbe.AbstractEncryptionScheme
org.cryptacular.pbe.OpenSSLEncryptionScheme
- All Implemented Interfaces:
EncryptionScheme
Password-based encryption scheme used by OpenSSL for encrypting private keys.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSSLEncryptionScheme
(org.bouncycastle.crypto.BufferedBlockCipher cipher, byte[] salt, int keyBitLength, char[] password) Creates a new instance using the given parameters.OpenSSLEncryptionScheme
(OpenSSLAlgorithm algorithm, byte[] iv, char[] password) Creates a new instance from an algorithm and salt data. -
Method Summary
Methods inherited from class org.cryptacular.pbe.AbstractEncryptionScheme
decrypt, decrypt, encrypt, encrypt, setCipher, setCipherParameters
-
Constructor Details
-
OpenSSLEncryptionScheme
public OpenSSLEncryptionScheme(org.bouncycastle.crypto.BufferedBlockCipher cipher, byte[] salt, int keyBitLength, char[] password) Creates a new instance using the given parameters.- Parameters:
cipher
- Buffered block cipher algorithm.salt
- Salt data for key generation function.keyBitLength
- Size of derived keys in bits.password
- Password used to derive key.
-
OpenSSLEncryptionScheme
Creates a new instance from an algorithm and salt data.- Parameters:
algorithm
- OpenSSL key encryption algorithm.iv
- Explicit IV; first 8 bytes also used for salt in PBE key generation.password
- Password used to derive key.
-