67686970717273
this(256); } public KeyGen(int keySize) { super("Camellia", keySize, new CipherKeyGenerator()); }
23242526272829
public static class KeyGen extends JCEKeyGenerator { public KeyGen() { super("Grainv1", 80, new CipherKeyGenerator()); }
45464748495051
public static class KeyGen extends JCEKeyGenerator { public KeyGen() { super("CAST5", 128, new CipherKeyGenerator()); }
222223224225226227228229230231232
Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { CipherParameters param; // // a note on iv's - if ivLength is zero the IV gets ignored (we don't use it). // if (key instanceof JCEPBEKey)
444546474849505152
protected void engineInit( SecureRandom random) { if (random != null) { engine.init(new KeyGenerationParameters(random, defaultKeySize)); uninitialised = false; } }
5556575859606162636465
int keySize, SecureRandom random) { try { engine.init(new KeyGenerationParameters(random, keySize)); uninitialised = false; } catch (IllegalArgumentException e) { throw new InvalidParameterException(e.getMessage());
6869707172737475767778
protected SecretKey engineGenerateKey() { if (uninitialised) { engine.init(new KeyGenerationParameters(new SecureRandom(), defaultKeySize)); uninitialised = false; } return new SecretKeySpec(engine.generateKey(), algName); }
120121122123124125126127128129130
protected SecretKey engineGenerateKey() { if (uninitialised) { engine.init(new KeyGenerationParameters(new SecureRandom(), defaultKeySize)); uninitialised = false; } // // if no key size has been defined generate a 24 byte key in
8788899091929394959697
{ return new SHA1Digest(); } if (md5.contains(digestName)) { return new MD5Digest(); } if (sha224.contains(digestName)) { return new SHA224Digest(); }
349350351352353354355
static public class RIPEMD256WithRSAEncryption extends JDKDigestSignature { public RIPEMD256WithRSAEncryption() { super(TeleTrusTObjectIdentifiers.ripemd256, new RIPEMD256Digest(), new PKCS1Encoding(new RSABlindedEngine())); }