Class OpenSSLEncryptionScheme

java.lang.Object
org.cryptacular.pbe.AbstractEncryptionScheme
org.cryptacular.pbe.OpenSSLEncryptionScheme
All Implemented Interfaces:
EncryptionScheme

public class OpenSSLEncryptionScheme extends AbstractEncryptionScheme
Password-based encryption scheme used by OpenSSL for encrypting private keys.
Version:
$Revision: 2744 $
Author:
Middleware Services
  • 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

      public OpenSSLEncryptionScheme(OpenSSLAlgorithm algorithm, byte[] iv, char[] password)
      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.