org.bouncycastle.jce.provider

Class JCEKeyGenerator

public class JCEKeyGenerator extends KeyGeneratorSpi

Nested Class Summary
static classJCEKeyGenerator.Blowfish
Blowfish
static classJCEKeyGenerator.CAST6
CAST6
static classJCEKeyGenerator.DES
DES
static classJCEKeyGenerator.DESede
DESede - the default for this is to generate a key in a-b-a format that's 24 bytes long but has 16 bytes of key material (the first 8 bytes is repeated as the last 8 bytes).
static classJCEKeyGenerator.DESede3
generate a desEDE key in the a-b-c format.
static classJCEKeyGenerator.GOST28147
GOST28147
static classJCEKeyGenerator.HC128
HC128
static classJCEKeyGenerator.HC256
HC256
static classJCEKeyGenerator.HMACSHA1
HMACSHA1
static classJCEKeyGenerator.HMACSHA224
HMACSHA224
static classJCEKeyGenerator.HMACSHA256
HMACSHA256
static classJCEKeyGenerator.HMACSHA384
HMACSHA384
static classJCEKeyGenerator.HMACSHA512
HMACSHA512
static classJCEKeyGenerator.HMACTIGER
HMACTIGER
static classJCEKeyGenerator.IDEA
IDEA
static classJCEKeyGenerator.MD2HMAC
MD2HMAC
static classJCEKeyGenerator.MD4HMAC
MD4HMAC
static classJCEKeyGenerator.MD5HMAC
MD5HMAC
static classJCEKeyGenerator.RC2
RC2
static classJCEKeyGenerator.RC4
RC4
static classJCEKeyGenerator.RC5
RC5
static classJCEKeyGenerator.RC564
RC5
static classJCEKeyGenerator.RC6
RC6
static classJCEKeyGenerator.Rijndael
Rijndael
static classJCEKeyGenerator.RIPEMD128HMAC
RIPE128HMAC
static classJCEKeyGenerator.RIPEMD160HMAC
RIPE160HMAC
static classJCEKeyGenerator.Salsa20
Salsa20
static classJCEKeyGenerator.Serpent
Serpent
static classJCEKeyGenerator.Skipjack
SKIPJACK
static classJCEKeyGenerator.TEA
TEA
static classJCEKeyGenerator.Twofish
Twofish
static classJCEKeyGenerator.XTEA
XTEA
Field Summary
protected StringalgName
protected intdefaultKeySize
protected CipherKeyGeneratorengine
protected intkeySize
protected booleanuninitialised
Constructor Summary
protected JCEKeyGenerator(String algName, int defaultKeySize, CipherKeyGenerator engine)
Method Summary
protected SecretKeyengineGenerateKey()
protected voidengineInit(AlgorithmParameterSpec params, SecureRandom random)
protected voidengineInit(SecureRandom random)
protected voidengineInit(int keySize, SecureRandom random)

Field Detail

algName

protected String algName

defaultKeySize

protected int defaultKeySize

engine

protected CipherKeyGenerator engine

keySize

protected int keySize

uninitialised

protected boolean uninitialised

Constructor Detail

JCEKeyGenerator

protected JCEKeyGenerator(String algName, int defaultKeySize, CipherKeyGenerator engine)

Method Detail

engineGenerateKey

protected SecretKey engineGenerateKey()

engineInit

protected void engineInit(AlgorithmParameterSpec params, SecureRandom random)

engineInit

protected void engineInit(SecureRandom random)

engineInit

protected void engineInit(int keySize, SecureRandom random)