edu.vt.middleware.crypt.pkcs
Class PBES2CipherGenerator

java.lang.Object
  extended by edu.vt.middleware.crypt.pkcs.PBES2CipherGenerator

public class PBES2CipherGenerator
extends Object

Creates SymmetricAlgorithm from ASN.1 encoded data describing the encryptionScheme value defined in PKCS#5v2.

Version:
$Revision: 1818 $
Author:
Middleware Services

Constructor Summary
PBES2CipherGenerator(org.bouncycastle.asn1.DERSequence seq)
          Creates a new cipher generator from DER-encoded data describing the cipher.
 
Method Summary
 SymmetricAlgorithm generate()
          Generates a symmetric cipher algorithm from decoded state data.
 int getKeySize()
          Gets the key size defined for this algorithm, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBES2CipherGenerator

public PBES2CipherGenerator(org.bouncycastle.asn1.DERSequence seq)
Creates a new cipher generator from DER-encoded data describing the cipher.

Parameters:
seq - DER-encoded sequence containing algorithm identifier and parameters.
Method Detail

generate

public SymmetricAlgorithm generate()
Generates a symmetric cipher algorithm from decoded state data.

Returns:
Symmetric cipher instance.

getKeySize

public int getKeySize()
Gets the key size defined for this algorithm, if any.

Returns:
Key size in bits, -1 otherwise.


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.