edu.vt.middleware.crypt.pbe
Class OpenSSLEncryptionScheme
java.lang.Object
edu.vt.middleware.crypt.pbe.AbstractEncryptionScheme
edu.vt.middleware.crypt.pbe.AbstractVariableKeySizeEncryptionScheme
edu.vt.middleware.crypt.pbe.OpenSSLEncryptionScheme
- All Implemented Interfaces:
- EncryptionScheme
public class OpenSSLEncryptionScheme
- extends AbstractVariableKeySizeEncryptionScheme
Password-based encryption scheme used by OpenSSL for encrypting private keys.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenSSLEncryptionScheme
public OpenSSLEncryptionScheme(SymmetricAlgorithm alg,
byte[] salt,
int keyBitLength)
- Creates a new instance using the given parameters.
- Parameters:
alg - Symmetric cipher algorithm used for encryption/decryption. The
cipher is expected to be initialized with data required for use except, of
course, the private key which will be generated from a password.salt - Salt data for key generation function.keyBitLength - Size of derived keys in bits.
OpenSSLEncryptionScheme
public OpenSSLEncryptionScheme(String algId,
byte[] iv)
- Creates a new instance from an algorithm identifier string and salt data.
- Parameters:
algId - Identifier describing the cipher used for key encryption.
The form of the identifier follows the following convention:
$ALGORITHM-$MODEiv - Cipher initialization vector data.
Copyright © 2003-2013 Virginia Tech. All Rights Reserved.