Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.crypto.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 org.bouncycastle.crypto.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 org.bouncycastle.crypto.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 org.bouncycastle.crypto.CipherParameters |
makePBEParameters(BCPBEKey pbeKey,
AlgorithmParameterSpec spec,
String targetAlgorithm)
construct a key and iv (if necessary) suitable for use with a
Cipher.
|
static org.bouncycastle.crypto.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 org.bouncycastle.crypto.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.
|
public static org.bouncycastle.crypto.CipherParameters makePBEParameters(byte[] pbeKey, int scheme, int digest, int keySize, int ivSize, AlgorithmParameterSpec spec, String targetAlgorithm) throws InvalidAlgorithmParameterException
public static org.bouncycastle.crypto.CipherParameters makePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, String targetAlgorithm)
public static org.bouncycastle.crypto.CipherParameters makePBEMacParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec)
public static org.bouncycastle.crypto.CipherParameters makePBEMacParameters(PBEKeySpec keySpec, int type, int hash, int keySize)
public static org.bouncycastle.crypto.CipherParameters makePBEParameters(PBEKeySpec keySpec, int type, int hash, int keySize, int ivSize)
public static org.bouncycastle.crypto.CipherParameters makePBEMacParameters(SecretKey key, int type, int hash, int keySize, PBEParameterSpec pbeSpec)
Copyright © 2017 BouncyCastle.org. All rights reserved.