Class PBE.Util
java.lang.Object
org.bouncycastle.jcajce.provider.symmetric.util.PBE.Util
- Enclosing interface:
- PBE
public static class PBE.Util extends Object
uses the appropriate mixer to generate the key and IV if necessary.
-
Constructor Summary
Constructors Constructor Description Util() -
Method Summary
Modifier and Type Method Description static CipherParametersmakePBEMacParameters(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.static CipherParametersmakePBEMacParameters(BCPBEKey pbeKey, 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.static CipherParametersmakePBEParameters(PBEKeySpec keySpec, int type, int hash, int keySize, int ivSize)construct a key and iv (if necessary) suitable for use with a Cipher.static CipherParametersmakePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, String targetAlgorithm)construct a key and iv (if necessary) suitable for use with a Cipher.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
makePBEParameters
public static CipherParameters makePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, String targetAlgorithm)construct a key and iv (if necessary) suitable for use with a Cipher. -
makePBEMacParameters
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
public static CipherParameters makePBEParameters(PBEKeySpec keySpec, int type, int hash, int keySize, int ivSize)construct a key and iv (if necessary) suitable for use with a Cipher. -
makePBEMacParameters
public static CipherParameters makePBEMacParameters(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.
-