org.bouncycastle.jce.provider
Class PBE.Util

java.lang.Object
  extended by org.bouncycastle.jce.provider.PBE.Util
Enclosing interface:
PBE

public static class PBE.Util
extends java.lang.Object

uses the appropriate mixer to generate the key and IV if neccessary.


Constructor Summary
PBE.Util()
           
 
Method Summary
private static PBEParametersGenerator makePBEGenerator(int type, int hash)
           
(package private) static CipherParameters makePBEMacParameters(JCEPBEKey pbeKey, java.security.spec.AlgorithmParameterSpec spec)
          generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater.
(package private) static CipherParameters makePBEMacParameters(javax.crypto.spec.PBEKeySpec keySpec, int type, int hash, int keySize)
          generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater.
(package private) static CipherParameters makePBEParameters(JCEPBEKey pbeKey, java.security.spec.AlgorithmParameterSpec spec, java.lang.String targetAlgorithm)
          construct a key and iv (if neccessary) suitable for use with a Cipher.
(package private) static CipherParameters makePBEParameters(javax.crypto.spec.PBEKeySpec keySpec, int type, int hash, int keySize, int ivSize)
          construct a key and iv (if neccessary) suitable for use with a Cipher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBE.Util

public PBE.Util()
Method Detail

makePBEGenerator

private static PBEParametersGenerator makePBEGenerator(int type,
                                                       int hash)

makePBEParameters

static CipherParameters makePBEParameters(JCEPBEKey pbeKey,
                                          java.security.spec.AlgorithmParameterSpec spec,
                                          java.lang.String targetAlgorithm)
construct a key and iv (if neccessary) suitable for use with a Cipher.


makePBEMacParameters

static CipherParameters makePBEMacParameters(JCEPBEKey pbeKey,
                                             java.security.spec.AlgorithmParameterSpec spec)
generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater.


makePBEParameters

static CipherParameters makePBEParameters(javax.crypto.spec.PBEKeySpec keySpec,
                                          int type,
                                          int hash,
                                          int keySize,
                                          int ivSize)
construct a key and iv (if neccessary) suitable for use with a Cipher.


makePBEMacParameters

static CipherParameters makePBEMacParameters(javax.crypto.spec.PBEKeySpec keySpec,
                                             int type,
                                             int hash,
                                             int keySize)
generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater.