Class PBE.Util
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.symmetric.util.PBE.Util
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CipherParameters
makePBEMacParameters(SecretKey key, int type, int hash, int keySize, PBEParameterSpec pbeSpec)
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 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.static CipherParameters
makePBEMacParameters(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 CipherParameters
makePBEParameters(byte[] pbeKey, int scheme, int digest, int keySize, int ivSize, AlgorithmParameterSpec spec, String targetAlgorithm)
construct a key and iv (if necessary) suitable for use with a Cipher.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.static CipherParameters
makePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, String targetAlgorithm)
construct a key and iv (if necessary) suitable for use with a Cipher.
-
-
-
Method Detail
-
makePBEParameters
public static CipherParameters makePBEParameters(byte[] pbeKey, int scheme, int digest, int keySize, int ivSize, AlgorithmParameterSpec spec, String targetAlgorithm) throws InvalidAlgorithmParameterException
construct a key and iv (if necessary) suitable for use with a Cipher.
-
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
public static CipherParameters makePBEMacParameters(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.
-
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.
-
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(SecretKey key, int type, int hash, int keySize, PBEParameterSpec pbeSpec)
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.
-
-