public class BaseKeyGenerator extends KeyGeneratorSpi
Modifier and Type | Field and Description |
---|---|
protected String |
algName |
protected int |
defaultKeySize |
protected org.bouncycastle.crypto.CipherKeyGenerator |
engine |
protected int |
keySize |
protected boolean |
uninitialised |
Modifier | Constructor and Description |
---|---|
protected |
BaseKeyGenerator(String algName,
int defaultKeySize,
org.bouncycastle.crypto.CipherKeyGenerator engine) |
Modifier and Type | Method and Description |
---|---|
protected SecretKey |
engineGenerateKey() |
protected void |
engineInit(AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(int keySize,
SecureRandom random) |
protected void |
engineInit(SecureRandom random) |
protected String algName
protected int keySize
protected int defaultKeySize
protected org.bouncycastle.crypto.CipherKeyGenerator engine
protected boolean uninitialised
protected BaseKeyGenerator(String algName, int defaultKeySize, org.bouncycastle.crypto.CipherKeyGenerator engine)
protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
engineInit
in class KeyGeneratorSpi
InvalidAlgorithmParameterException
protected void engineInit(SecureRandom random)
engineInit
in class KeyGeneratorSpi
protected void engineInit(int keySize, SecureRandom random)
engineInit
in class KeyGeneratorSpi
protected SecretKey engineGenerateKey()
engineGenerateKey
in class KeyGeneratorSpi
Copyright © 2017 BouncyCastle.org. All rights reserved.